import apt_pkg, apt_inst
from apt import OpProgress
-from debian_bundle import deb822
+from debian import deb822
from apt_p2p_conf import config
from Hash import HashObject
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(str(file['name']), {})[hash_type.upper()] = (str(file[hash_type]), file['size'])
f.close()