autoimport: fix hash check
[~helmut/debian-dedup.git] / autoimport.py
index 5fb0659..c00dc4d 100755 (executable)
@@ -36,7 +36,7 @@ def process_http(pkgs, url, addhash=True):
             inst = dict(version=pkg["Version"],
                         filename="%s/%s" % (url, pkg["Filename"]))
             if addhash:
-                inst["sharing"] = pkg["SHA256"]
+                inst["sha256hash"] = pkg["SHA256"]
             pkgs[name] = inst
 
 def process_file(pkgs, filename):