mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 20:05:07 -05:00
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>
This commit is contained in:
parent
d8d89d8d27
commit
c377107346
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user