autoimport: fix hash check
authorHelmut Grohne <helmut@subdivi.de>
Thu, 9 Jun 2016 20:44:04 +0000 (22:44 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Thu, 9 Jun 2016 20:44:04 +0000 (22:44 +0200)
Fixes: 2f12a6e2f426 ("autoimport: add option to skip hash checking")

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):