summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Oudompheng <remyoudompheng@gmail.com>2011-04-02 00:35:37 +0200
committerDan McGee <dan@archlinux.org>2011-04-02 12:39:04 -0500
commitc37710734694c5a64da924bbfbbcfc07496e241e (patch)
tree391486166ccfd863c725eb46eee8ed795e8f5891 /lib
parentd8d89d8d27794d493ed2aa9eba4649e6e3ff4a9d (diff)
Fix compatibility with older versions of libarchive.
There is no reason to not support versions of libarchive that lack ARCHIVE_COMPRESSION_UU. Distributions should work properly without this. Signed-off-by: Rémy Oudompheng <remy@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/be_sync.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index ef8517e3..c2c62aa2 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -197,9 +197,11 @@ static size_t estimate_package_count(struct stat *st, struct archive *archive)
case ARCHIVE_COMPRESSION_XZ:
per_package = 143;
break;
+#ifdef ARCHIVE_COMPRESSION_UU
case ARCHIVE_COMPRESSION_UU:
per_package = 3543;
break;
+#endif
default:
/* assume it is at least somewhat compressed */
per_package = 200;