HCoop
/
ntk
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a8feb2
)
* apt-pkg/acquire-item.cc:
author
Michael Vogt
<michael.vogt@ubuntu.com>
Tue, 31 Jul 2007 10:11:54 +0000
(12:11 +0200)
committer
Michael Vogt
<michael.vogt@ubuntu.com>
Tue, 31 Jul 2007 10:11:54 +0000
(12:11 +0200)
- only verify checksum in pkgAcqFile if we actually have one
apt-pkg/acquire-item.cc
patch
|
blob
|
blame
|
history
diff --git
a/apt-pkg/acquire-item.cc
b/apt-pkg/acquire-item.cc
index
c48502b
..
6e7c750
100644
(file)
--- 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";