diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-09-29 08:33:33 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-09-29 08:33:33 +0200 |
commit | 48f3f1b24b48066cfc23342a5c6470ddf5e0fa6a (patch) | |
tree | 60fdc3dc5d238257bc85ea560cc63a697118ace3 /apt-private | |
parent | ffbe056dc554b3f1fdf79b4726415a70f6d59dc1 (diff) | |
parent | e359fe101e1a66277b340563c96e868451d9d4b5 (diff) |
Merge branch 'debian/sid' into debian/experimental
Conflicts:
apt-pkg/acquire-item.cc
Diffstat (limited to 'apt-private')
-rw-r--r-- | apt-private/private-update.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apt-private/private-update.cc b/apt-private/private-update.cc index 860d84b86..1cf3012ed 100644 --- a/apt-private/private-update.cc +++ b/apt-private/private-update.cc @@ -56,10 +56,17 @@ bool DoUpdate(CommandLine &CmdL) if (List->GetIndexes(&Fetcher,true) == false) return false; + std::string compExt = APT::Configuration::getCompressionTypes()[0]; pkgAcquire::UriIterator I = Fetcher.UriBegin(); for (; I != Fetcher.UriEnd(); ++I) - c1out << '\'' << I->URI << "' " << flNotDir(I->Owner->DestFile) << ' ' << + { + std::string FileName = flNotDir(I->Owner->DestFile); + if(compExt.empty() == false && + APT::String::Endswith(FileName, compExt)) + FileName = FileName.substr(0, FileName.size() - compExt.size() - 1); + c1out << '\'' << I->URI << "' " << FileName << ' ' << I->Owner->FileSize << ' ' << I->Owner->HashSum() << std::endl; + } return true; } |