Fix some minor bugs in the previous commits.
[quix0rs-apt-p2p.git] / apt_dht / AptPackages.py
index 1c38a003c4776ded668544d94a88167b110cea87..3e1c035bba9edfae08579e073aaeeec4410c85e4 100644 (file)
@@ -158,7 +158,7 @@ class AptPackages:
         rel = deb822.Release(f, fields = ['MD5Sum', 'SHA1', 'SHA256'])
         for hash_type in rel:
             for file in rel[hash_type]:
-                self.indexrecords[cache_path].setdefault(file['name'], {})[hash_type.upper()] = (file['hash_type'], file['size'])
+                self.indexrecords[cache_path].setdefault(file['name'], {})[hash_type.upper()] = (file[hash_type], file['size'])
             
         f.close()