1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04: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:
Rémy Oudompheng 2011-04-02 00:35:37 +02:00 committed by Dan McGee
parent d8d89d8d27
commit c377107346

View File

@ -197,9 +197,11 @@ static size_t estimate_package_count(struct stat *st, struct archive *archive)
case ARCHIVE_COMPRESSION_XZ: case ARCHIVE_COMPRESSION_XZ:
per_package = 143; per_package = 143;
break; break;
#ifdef ARCHIVE_COMPRESSION_UU
case ARCHIVE_COMPRESSION_UU: case ARCHIVE_COMPRESSION_UU:
per_package = 3543; per_package = 3543;
break; break;
#endif
default: default:
/* assume it is at least somewhat compressed */ /* assume it is at least somewhat compressed */
per_package = 200; per_package = 200;