summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-08-08 19:31:03 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-08-08 19:31:03 +0200
commit73eb1788912790f19d42d8c95b98fcb5760fbbdf (patch)
tree9b254387f00a509dfe8b77e28dedd952b7d924fd /apt-pkg
parentb799e134fc730519cc8f0c0ea4387badffac4092 (diff)
parent95f45727964767f11534eb5347af3fc3a8a6e020 (diff)
* methods/copy.cc:
- take hashes here too * apt-pkg/acquire-worker.cc: - only pass on computed hash if we recived one from the method
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/acquire-worker.cc4
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