Преглед изворни кода

* apt-pkg/deb/debsrcrecords.cc:
- support xz-compressed source v3 debian.tar files

David Kalnischkies пре 15 година
родитељ
комит
255bfa26bb
2 измењених фајлова са 5 додато и 2 уклоњено
  1. 2 1
      apt-pkg/deb/debsrcrecords.cc
  2. 3 1
      debian/changelog

+ 2 - 1
apt-pkg/deb/debsrcrecords.cc

@@ -144,7 +144,8 @@ bool debSrcRecordParser::Files(vector<pkgSrcRecords::File> &List)
 	 }
 	 }
 	 F.Type = string(F.Path,Tmp+1,Pos-Tmp);
 	 F.Type = string(F.Path,Tmp+1,Pos-Tmp);
 	 
 	 
-	 if (F.Type == "gz" || F.Type == "bz2" || F.Type == "lzma" || F.Type == "tar")
+	 if (F.Type == "gz" || F.Type == "bz2" || F.Type == "lzma" ||
+	     F.Type == "xz" || F.Type == "tar")
 	 {
 	 {
 	    Pos = Tmp-1;
 	    Pos = Tmp-1;
 	    continue;
 	    continue;

+ 3 - 1
debian/changelog

@@ -18,8 +18,10 @@ apt (0.8.10.3+squeeze1) UNRELEASED; urgency=low
       to open data.tar.xz files
       to open data.tar.xz files
   * ftparchive/writer.cc:
   * ftparchive/writer.cc:
     - include xz-compressed Packages and Sources files in Release file
     - include xz-compressed Packages and Sources files in Release file
+  * apt-pkg/deb/debsrcrecords.cc:
+    - support xz-compressed source v3 debian.tar files
 
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Tue, 22 Feb 2011 14:51:32 +0100
+ -- David Kalnischkies <kalnischkies@gmail.com>  Tue, 22 Feb 2011 18:12:21 +0100
 
 
 apt (0.8.10.3) unstable; urgency=low
 apt (0.8.10.3) unstable; urgency=low