index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2007-11-29 13:40:14 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-12-01 10:43:16 -0600 |
commit | 5f811dc0207ead061b89d3acc6466bb390fd242e (patch) | |
tree | 4a6c3ac98276fc6b05b45d31fa69d1056630eb01 /lib/libalpm/add.c | |
parent | cff1e2a58ffbf878e03689b52e58d8a830b45aff (diff) |
-rw-r--r-- | lib/libalpm/add.c | 2 |
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 7a268048..4ea3c869 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -296,10 +296,12 @@ static int extract_single_file(struct archive *archive, /* the install script goes inside the db */ 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, newpkg->name, newpkg->version); + archive_entry_set_mode(entry, 0644); } else if(*entryname == '.') { /* for now, ignore all files starting with '.' that haven't * already been handled (for future possibilities) */ |