summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-01-18 20:48:48 +0100
committerDan McGee <dan@archlinux.org>2009-01-18 20:48:48 +0100
commitc794661f1ea8c819d479948e92e5648de62787c5 (patch)
treef7570d87f370f1cdfe04ec72e0719120f41b9e34 /lib/libalpm/add.c
parent8929769902597f109fc6b49609fb64121becb197 (diff)
parent472e51b975b9cb8fe1f67c03ff72bbc067fa7f01 (diff)
downloadpacman-c794661f1ea8c819d479948e92e5648de62787c5.tar.gz
pacman-c794661f1ea8c819d479948e92e5648de62787c5.tar.xz
Merge branch 'maint'
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r--lib/libalpm/add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 264a28ee..6eb2085e 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -292,12 +292,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);
+ archive_entry_set_perm(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);
+ archive_entry_set_perm(entry, 0644);
} else if(*entryname == '.') {
/* for now, ignore all files starting with '.' that haven't
* already been handled (for future possibilities) */