summaryrefslogtreecommitdiff
path: root/ftparchive/contents.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-02-22 15:05:01 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-02-22 15:05:01 +0100
commitb7080ced608f012aee2566afc724c3727e75fc1b (patch)
tree6915540ec50b855f471ad56d8571f25c5a5fddb2 /ftparchive/contents.cc
parent3c54407f8783d5e27363eabf41dbc3d031526ffe (diff)
parentcd5b597cc855a535b35e88324191931c54c6fba0 (diff)
* ftparchive/multicompress.cc, apt-inst/deb/debfile.cc:
- support xz compressor to create xz-compressed Indexes and be able to open data.tar.xz files * ftparchive/writer.cc: - include xz-compressed Packages and Sources files in Release file
Diffstat (limited to 'ftparchive/contents.cc')
-rw-r--r--ftparchive/contents.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/ftparchive/contents.cc b/ftparchive/contents.cc
index b761d9204..9e283cf33 100644
--- a/ftparchive/contents.cc
+++ b/ftparchive/contents.cc
@@ -318,8 +318,12 @@ bool ContentsExtract::Read(debDebFile &Deb)
Compressor = "lzma";
}
if (Member == 0) {
+ Member = Deb.GotoMember("data.tar.xz");
+ Compressor = "xz";
+ }
+ if (Member == 0) {
_error->Error(_("Internal error, could not locate member %s"),
- "data.tar.{gz,bz2,lzma}");
+ "data.tar.{gz,bz2,lzma,xz}");
return false;
}