index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Xavier Chantry <shiningxc@gmail.com> | 2008-05-30 08:52:27 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-06-04 16:25:27 -0500 |
commit | 0966c33a72ce172526762ac988ee6edbbba07b52 (patch) | |
tree | afcac95b66d0d9e653afe0c9710888768b2e4442 /lib/libalpm/add.c | |
parent | fe781e4ce4ace4410bbc8bec441140cfc323d262 (diff) |
-rw-r--r-- | lib/libalpm/add.c | 4 |
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 03698622..6cf865ab 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -289,12 +289,12 @@ static int extract_single_file(struct archive *archive, if(strcmp(entryname, ".INSTALL") == 0) { /* the install script goes inside the db */ - snprintf(filename, PATH_MAX, "%s/%s-%s/install", db->path, + snprintf(filename, PATH_MAX, "%s%s-%s/install", db->path, newpkg->name, newpkg->version); archive_entry_set_mode(entry, 0644); } else if(strcmp(entryname, ".CHANGELOG") == 0) { /* the changelog goes inside the db */ - snprintf(filename, PATH_MAX, "%s/%s-%s/changelog", db->path, + snprintf(filename, PATH_MAX, "%s%s-%s/changelog", db->path, newpkg->name, newpkg->version); archive_entry_set_mode(entry, 0644); } else if(*entryname == '.') { |