]> git.mxchange.org Git - quix0rs-apt-p2p.git/commitdiff
Fix: no files were added to the DHT due to missing hashing results.
authorCameron Dale <camrdale@gmail.com>
Sat, 26 Apr 2008 17:01:08 +0000 (10:01 -0700)
committerCameron Dale <camrdale@gmail.com>
Sat, 26 Apr 2008 17:01:08 +0000 (10:01 -0700)
apt_p2p/Hash.py

index 021c84cf11dec62110eed41155e80bc7768fc48f..1a037ea6ec16254dea6190877cd7da97c4d0475f 100644 (file)
@@ -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