Skip to content

Commit

Permalink
mkosi: fix wrong url to get Fedora's keys
Browse files Browse the repository at this point in the history
Fedora's website recently moved the keys from

    https://getfedora.org/static/[KEY]

to

    https://getfedora.org/static/keys/[KEY]

Unfortunately, they are not redirecting the URL, so it results in a 404.
It means that mkosi fails installing packages when the keys are not
stored locally, because it fails to get them from the website.
  • Loading branch information
ronnychevalier authored and poettering committed Jan 16, 2020
1 parent a99f6fb commit 3a3a21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkosi
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ def install_fedora(args: CommandLineArguments, workspace: str, do_run_build_scri
if os.path.exists(gpg_key):
gpg_key = f"file://{gpg_key}"
else:
gpg_key = "https://getfedora.org/static/{}.txt".format(FEDORA_KEYS_MAP[args.releasever])
gpg_key = "https://getfedora.org/static/keys/{}.txt".format(FEDORA_KEYS_MAP[args.releasever])

if args.mirror:
baseurl = f"{args.mirror}/releases/{args.release}/Everything/$basearch/os/"
Expand Down

0 comments on commit 3a3a21e

Please sign in to comment.