]> git.saurik.com Git - apt.git/commitdiff
* ftparchive/contents.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 30 Nov 2007 12:00:15 +0000 (13:00 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 30 Nov 2007 12:00:15 +0000 (13:00 +0100)
  - fix error output
* ftparchive/contents.cc:
  - support lzma data members
* ftparchive/multicompress.cc:
  - support lzma output

debian/changelog
ftparchive/contents.cc
ftparchive/multicompress.cc

index 832ee11d43f764be769b721c6d30616ff8bded45..ca4a9bbe78eabaa4dcd92beff7b5513ef148e69f 100644 (file)
@@ -18,6 +18,13 @@ apt (0.7.10) unstable; urgency=low
   [ Michael Vogt ]
   * debian/rules
     - fix https install location
+  * ftparchive/contents.cc:
+    - fix error output
+  [ Chris Cheney ]
+  * ftparchive/contents.cc:
+    - support lzma data members
+  * ftparchive/multicompress.cc:
+    - support lzma output
 
  -- Michael Vogt <mvo@debian.org>  Wed, 28 Nov 2007 17:10:49 +0100
 
index 3801995bd3829a40929f34097ae389296c75bd33..1f2cbcc3d2ff3ba78c58cb165bcd845665e7a2c5 100644 (file)
@@ -314,7 +314,12 @@ bool ContentsExtract::Read(debDebFile &Deb)
       Compressor = "bzip2";
    }
    if (Member == 0) {
-      _error->Error(_("Internal error, could not locate member %s"),"data.tar.gz");
+      Member = Deb.GotoMember("data.tar.lzma");
+      Compressor = "lzma";
+   }
+   if (Member == 0) {
+      _error->Error(_("Internal error, could not locate member %s"),
+                   "data.tar.{gz,bz2,lzma}");
       return false;
    }
       
index 935c9887762e998e8b442f5b79f8b48dc0723045..2fc8efcbfe142e3882480d79b9b249be219e1aa3 100644 (file)
@@ -34,6 +34,7 @@ const MultiCompress::CompType MultiCompress::Compressors[] =
       {{".","",0,0,0,1},
        {"gzip",".gz","gzip","-9n","-d",2},
        {"bzip2",".bz2","bzip2","-9","-d",3},
+       {"lzma",".lzma","lzma","-9","-d",4},
        {}};
 
 // MultiCompress::MultiCompress - Constructor                          /*{{{*/