diff options
author | Denys Vlasenko | 2015-01-30 15:15:38 +0100 |
---|---|---|
committer | Denys Vlasenko | 2015-01-30 15:15:38 +0100 |
commit | 08f9ffc3f7503eb3dc94f16c615b20d2ae9a059c (patch) | |
tree | 7f4ad348cc275500a72a6c7ea3dab015bce2221b /archival/dpkg_deb.c | |
parent | 8c05a74f7efcda6ae5bd83e134edf44af12cb5e4 (diff) | |
download | busybox-08f9ffc3f7503eb3dc94f16c615b20d2ae9a059c.zip busybox-08f9ffc3f7503eb3dc94f16c615b20d2ae9a059c.tar.gz |
dpkg: update supported compression methods
Based on a patch by Ron Yorston <rmy@tigress.co.uk>
function old new delta
get_header_tar_xz - 60 +60
filter_accept_list_reassign 128 188 +60
unpack_package 585 621 +36
init_archive_deb_control 52 76 +24
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 3/0 up/down: 180/0) Total: 180 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/dpkg_deb.c')
-rw-r--r-- | archival/dpkg_deb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c index 13f9db9..0285273 100644 --- a/archival/dpkg_deb.c +++ b/archival/dpkg_deb.c @@ -70,6 +70,8 @@ int dpkg_deb_main(int argc, char **argv) ar_archive->dpkg__sub_archive = tar_archive; ar_archive->filter = filter_accept_list_reassign; + llist_add_to(&ar_archive->accept, (char*)"data.tar"); + llist_add_to(&control_tar_llist, (char*)"control.tar"); #if ENABLE_FEATURE_SEAMLESS_GZ llist_add_to(&ar_archive->accept, (char*)"data.tar.gz"); llist_add_to(&control_tar_llist, (char*)"control.tar.gz"); @@ -82,6 +84,10 @@ int dpkg_deb_main(int argc, char **argv) llist_add_to(&ar_archive->accept, (char*)"data.tar.lzma"); llist_add_to(&control_tar_llist, (char*)"control.tar.lzma"); #endif +#if ENABLE_FEATURE_SEAMLESS_XZ + llist_add_to(&ar_archive->accept, (char*)"data.tar.xz"); + llist_add_to(&control_tar_llist, (char*)"control.tar.xz"); +#endif opt_complementary = "c--efXx:e--cfXx:f--ceXx:X--cefx:x--cefX"; opt = getopt32(argv, "cefXx"); |