amprolla

devuan's apt repo merger
git clone git://parazyd.org/amprolla.git
Log | Files | Refs | README | LICENSE

commit 4eb2e225dc9cfdb272b1cbda5e5f7d4f5afec01c
parent 3320b78e4f1acf7a164edec22be2225a3d83ad58
Author: parazyd <parazyd@dyne.org>
Date:   Thu,  1 Jun 2017 17:47:32 +0200

import hashlib functions

Diffstat:
Mamprolla_init.py | 2+-
Mlib/config.py | 8++++++--
2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/amprolla_init.py b/amprolla_init.py @@ -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) diff --git a/lib/config.py b/lib/config.py @@ -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']