diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-02-22 12:50:47 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-02-22 12:50:47 +0100 |
commit | bc33e0f0b6b1fdb010dcd4a49a78b827530052aa (patch) | |
tree | 210d986981e3959b46ddb79744f3a68ea963b689 /ftparchive/contents.cc | |
parent | 0ff1a4556c0a0fb76ce48e88031eff2b4d613c5e (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
Diffstat (limited to 'ftparchive/contents.cc')
-rw-r--r-- | ftparchive/contents.cc | 6 |
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; } |