]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-worker.cc
* methods/copy.cc:
[apt.git] / apt-pkg / acquire-worker.cc
index 460f599611dba48868c515b7535ad6584fe95365..739c9e32ccacf1e4381e1872b3a3db61c3f3067a 100644 (file)
@@ -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