projects
/
quix0rs-apt-p2p.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6573b9d
)
Fix: no files were added to the DHT due to missing hashing results.
author
Cameron Dale
<camrdale@gmail.com>
Sat, 26 Apr 2008 17:01:08 +0000
(10:01 -0700)
committer
Cameron Dale
<camrdale@gmail.com>
Sat, 26 Apr 2008 17:01:08 +0000
(10:01 -0700)
apt_p2p/Hash.py
patch
|
blob
|
history
diff --git
a/apt_p2p/Hash.py
b/apt_p2p/Hash.py
index 021c84cf11dec62110eed41155e80bc7768fc48f..1a037ea6ec16254dea6190877cd7da97c4d0475f 100644
(file)
--- a/
apt_p2p/Hash.py
+++ b/
apt_p2p/Hash.py
@@
-200,6
+200,7
@@
class HashObject:
def verify(self):
"""Verify that the added file data hash matches the expected hash."""
+ self.digest()
if self.result is None and self.fileHash is not None and self.expHash is not None:
self.result = (self.fileHash == self.expHash and self.size == self.expSize)
return self.result