dpkg: add support for lzma compression
authorPascal Bellard <pascal.bellard@ads-lu.com>
Sun, 6 Jun 2010 23:20:41 +0000 (01:20 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 6 Jun 2010 23:20:41 +0000 (01:20 +0200)
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/dpkg_deb.c

index cfbd78420f25a7d04c87feb7679242e599b6e194..45a791bba0716aea17132c9b11489e6b2e4f3c4e 100644 (file)
@@ -32,14 +32,17 @@ int dpkg_deb_main(int argc, char **argv)
        ar_archive->filter = filter_accept_list_reassign;
 
 #if ENABLE_FEATURE_SEAMLESS_GZ
-       llist_add_to(&(ar_archive->accept), (char*)"data.tar.gz");
+       llist_add_to(&ar_archive->accept, (char*)"data.tar.gz");
        llist_add_to(&control_tar_llist, (char*)"control.tar.gz");
 #endif
-
 #if ENABLE_FEATURE_SEAMLESS_BZ2
-       llist_add_to(&(ar_archive->accept), (char*)"data.tar.bz2");
+       llist_add_to(&ar_archive->accept, (char*)"data.tar.bz2");
        llist_add_to(&control_tar_llist, (char*)"control.tar.bz2");
 #endif
+#if ENABLE_FEATURE_SEAMLESS_LZMA
+       llist_add_to(&ar_archive->accept, (char*)"data.tar.lzma");
+       llist_add_to(&control_tar_llist, (char*)"control.tar.lzma");
+#endif
 
        opt_complementary = "c--efXx:e--cfXx:f--ceXx:X--cefx:x--cefX";
        opt = getopt32(argv, "cefXx");