fetch-stage3: fix gnupg home directory

This commit is contained in:
Jörg Deckert 2025-03-21 18:04:04 +01:00
parent 5a0c2c9b36
commit 9734668ed9

View File

@ -34,7 +34,7 @@ def get_manifest(arch, mirror=MIRROR):
manifest = []
url = mirror + '/releases/{0}/autobuilds/latest-stage3.txt'.format(arch)
base_url = mirror + '/releases/{0}/autobuilds/'.format(arch)
gpg = gnupg.GPG(gnupghome="/home/user/.gnupg")
gpg = gnupg.GPG(gnupghome=os.path.expanduser('~') + '/.gnupg')
with urllib.request.urlopen(url) as fp:
text = gpg.verify_file(fp, extra_args=['-o', '-']).data