Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/be_sync.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-01-28 20:23:25 -0500
committerAllan McRae <allan@archlinux.org>2013-01-29 13:37:32 +1000
commite1e4bbb79ddd23e46b8d3a01168f4eb410308d5b (patch)
treeaf5e7d24e30a953b3e1e46a76e0b90804a12ebe6 /lib/libalpm/be_sync.c
parent2a57c2068c3ea744608c364f9cacedd3f0c14849 (diff)
Use libarchive compat header for relevant symbols
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r--lib/libalpm/be_sync.c5
1 files changed, 3 insertions, 2 deletions
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);
}