timport hashlib functions - amprolla - devuan's apt repo merger (HTM) git clone git://parazyd.org/amprolla.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 4eb2e225dc9cfdb272b1cbda5e5f7d4f5afec01c (DIR) parent 3320b78e4f1acf7a164edec22be2225a3d83ad58 (HTM) Author: parazyd <parazyd@dyne.org> Date: Thu, 1 Jun 2017 17:47:32 +0200 import hashlib functions Diffstat: M amprolla_init.py | 2 +- M lib/config.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) --- (DIR) diff --git a/amprolla_init.py b/amprolla_init.py t@@ -65,7 +65,7 @@ def main(): release_contents = parse_release(release_contents) # for k in release_contents.keys(): for k in release_contents: - if k.endswith('/binary-armhf/Packages.gz'): + # if k.endswith('/binary-armhf/Packages.gz'): # if k.endswith('Packages.gz'): remote = join(url[0], k) local = join(url[1], k) (DIR) diff --git a/lib/config.py b/lib/config.py t@@ -4,14 +4,18 @@ amprolla configuration file """ -# from hashlib import md5, sha1, sha256 +from hashlib import md5, sha1, sha256 spooldir = './spool' sign_key = 'fa1b0274' mergedir = './merged' mergesubdir = 'dists' banpkgs = {'systemd', 'systemd-sysv'} -# checksums = [{'name': 'MD5Sum', 'f': md5}, sha1, sha256] +checksums = [ + {'name': 'MD5Sum', 'f': md5}, + {'name': 'SHA1', 'f': sha1}, + {'name': 'SHA256', 'f': sha256}, +] # checksums = [ 'md5sum', 'sha1', 'sha256', 'sha512' ] repo_order = ['devuan', 'debian-sec', 'debian']