From: Michael Vogt Date: Tue, 31 Jul 2007 10:11:54 +0000 (+0200) Subject: * apt-pkg/acquire-item.cc: X-Git-Tag: 0.7.21~254^2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/2c941d896911dca364b3d38dc593f3bf6847f3e5 * apt-pkg/acquire-item.cc: - only verify checksum in pkgAcqFile if we actually have one --- diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index c48502bb9..6e7c75032 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1538,7 +1538,7 @@ void pkgAcqFile::Done(string Message,unsigned long Size,string CalcHash, Item::Done(Message,Size,CalcHash,Cnf); // Check the hash - if(ExpectedHash.toStr() != CalcHash) + if(!ExpectedHash.empty() && ExpectedHash.toStr() != CalcHash) { Status = StatError; ErrorText = "Hash Sum mismatch";