]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_p2p/db.py
Multiple peer downloading is mostly working now.
[quix0rs-apt-p2p.git] / apt_p2p / db.py
index 396f419da12b791d5f2ce0408ce6ce2e79a700e0..63cc7e72cbc8f783030afe593c8464b708433f14 100644 (file)
@@ -114,8 +114,7 @@ class DB:
         # Hash the pieces to get the piecehash
         piecehash = ''
         if pieces:
-            s = sha.new().update(pieces)
-            piecehash = sha.digest()
+            piecehash = sha.new(pieces).digest()
             
         # Check the database for the hash
         c = self.conn.cursor()