diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-07-31 12:11:54 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-07-31 12:11:54 +0200 |
commit | 2c941d896911dca364b3d38dc593f3bf6847f3e5 (patch) | |
tree | 40ee6f03adea01d350d4437a0291e1c21d5f8623 /apt-pkg | |
parent | 8a8feb29265b3dfc27f82072563a641a7976752a (diff) | |
download | apt-2c941d896911dca364b3d38dc593f3bf6847f3e5.tar.gz |
* apt-pkg/acquire-item.cc:
- only verify checksum in pkgAcqFile if we actually have one
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/acquire-item.cc | 2 |
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"; |