summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-07-31 12:11:54 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-07-31 12:11:54 +0200
commit2c941d896911dca364b3d38dc593f3bf6847f3e5 (patch)
tree40ee6f03adea01d350d4437a0291e1c21d5f8623 /apt-pkg/acquire-item.cc
parent8a8feb29265b3dfc27f82072563a641a7976752a (diff)
* apt-pkg/acquire-item.cc:
- only verify checksum in pkgAcqFile if we actually have one
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc2
1 files changed, 1 insertions, 1 deletions
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";