Explorar el Código

* merged from sha256 branch

Michael Vogt hace 19 años
padre
commit
3525c773c1
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      apt-pkg/acquire-worker.cc

+ 3 - 1
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