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 021c84c..1a037ea 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