amprolla

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

commit f03f8f3c555d62654a59f985f04461f8695255f4
parent d9c027b97c6ae42fd0df4fc206a1c711c8bd3790
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 29 Jun 2017 11:53:07 +0200

support portable gnupg directories

Diffstat:
Mlib/config.def.py | 1+
Mlib/release.py | 5+++--
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/config.def.py b/lib/config.def.py @@ -9,6 +9,7 @@ from hashlib import md5, sha1, sha256 cpunm = 4 # number of cpus you want to use for multiprocessing logdir = './log' spooldir = './spool' +gpgdir= './gnupg' signingkey = 'CA608125' mergedir = './merged-volatile' mergesubdir = 'dists' diff --git a/lib/release.py b/lib/release.py @@ -8,7 +8,8 @@ from datetime import datetime, timedelta from os.path import getsize, isfile import gnupg -from lib.config import checksums, release_aliases, release_keys, signingkey +from lib.config import (checksums, gpgdir, release_aliases, release_keys, + signingkey) from lib.parse import parse_release_head @@ -64,7 +65,7 @@ def sign_release(infile): """ Signs both the clearsign and the detached signature of a Release file """ - gpg = gnupg.GPG() + gpg = gnupg.GPG(gnupghome=gpgdir) stream = open(infile, 'rb')