index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2013-01-28 20:23:25 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-01-29 13:37:32 +1000 |
commit | e1e4bbb79ddd23e46b8d3a01168f4eb410308d5b (patch) | |
tree | af5e7d24e30a953b3e1e46a76e0b90804a12ebe6 /lib/libalpm/be_sync.c | |
parent | 2a57c2068c3ea744608c364f9cacedd3f0c14849 (diff) |
-rw-r--r-- | lib/libalpm/be_sync.c | 5 |
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 66e351b5..36725251 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -31,6 +31,7 @@ /* libalpm */ #include "util.h" #include "log.h" +#include "libarchive-compat.h" #include "alpm.h" #include "alpm_list.h" #include "package.h" @@ -383,7 +384,7 @@ static size_t estimate_package_count(struct stat *st, struct archive *archive) { int per_package; - switch(archive_compression(archive)) { + switch(_alpm_archive_filter_code(archive)) { case ARCHIVE_COMPRESSION_NONE: per_package = 3015; break; @@ -471,7 +472,7 @@ static int sync_db_populate(alpm_db_t *db) count, db->treename); cleanup: - archive_read_finish(archive); + _alpm_archive_read_free(archive); if(fd >= 0) { CLOSE(fd); } |