diff options
author | Michael Vogt <mvo@ubuntu.com> | 2015-05-22 16:17:08 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2015-05-22 16:17:08 +0200 |
commit | 0f3150e7040f45565b459a1390606bc2f714f6a8 (patch) | |
tree | 200b65a080c246b09e6bcdcd81ea82c824272600 /apt-pkg/acquire-item.cc | |
parent | 314b47542c57d0a12c55dd1dd334cf233a33fcfb (diff) | |
parent | 4694e07d450baa13fa04482752ca369a5797c640 (diff) |
Merge remote-tracking branch 'upstream/debian/jessie' into debian/sid
Conflicts:
apt-pkg/deb/dpkgpm.cc
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r-- | apt-pkg/acquire-item.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 253cbdaf7..0bcafdc5c 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1194,8 +1194,18 @@ void pkgAcqIndex::Done(string Message,unsigned long long Size,string Hash, Desc.URI = decompProg + ":" + FileName; QueueURI(Desc); - // FIXME: this points to a c++ string that goes out of scope - Mode = decompProg.c_str(); + if (decompProg == "copy") + Mode = "copy"; + else if (decompProg == "xz") + Mode = "xz"; + else if (decompProg == "lzma") + Mode = "lzma"; + else if (decompProg == "bzip2") + Mode = "bzip2"; + else if (decompProg == "gzip") + Mode = "gzip"; + else + Mode = "decomp"; } /*}}}*/ // AcqIndexTrans::pkgAcqIndexTrans - Constructor /*{{{*/ |