diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-08-11 09:20:46 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-08-11 09:20:46 +0200 |
commit | 3525c773c191b5e162bb251c50c829c6abeefebc (patch) | |
tree | 9a6d67016bca720dc933d307aee5868ea39fa16c /apt-pkg/acquire-worker.cc | |
parent | 680eec306fd943aa1320d5b10ef1a6689d0bb68f (diff) | |
parent | 95f45727964767f11534eb5347af3fc3a8a6e020 (diff) |
* merged from sha256 branch
Diffstat (limited to 'apt-pkg/acquire-worker.cc')
-rw-r--r-- | apt-pkg/acquire-worker.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc index 460f59961..739c9e32c 100644 --- a/apt-pkg/acquire-worker.cc +++ b/apt-pkg/acquire-worker.cc @@ -273,7 +273,9 @@ bool pkgAcquire::Worker::RunMessages() if(!expectedHash.empty()) { string hashTag = expectedHash.HashType()+"-Hash"; - RecivedHash = expectedHash.HashType() + ":" + LookupTag(Message, hashTag.c_str()); + string hashSum = LookupTag(Message, hashTag.c_str()); + if(!hashSum.empty()) + RecivedHash = expectedHash.HashType() + ":" + hashSum; if(_config->FindB("Debug::pkgAcquire::Auth", false) == true) { clog << "201 URI Done: " << Owner->DescURI() << endl |