From: Zbigniew Jędrzejewski-Szmek Date: Fri, 10 Sep 2021 16:22:20 +0000 (+0200) Subject: fedora: fix selection of rawhide X-Git-Tag: v11~49^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F807%2Fhead;p=thirdparty%2Fmkosi.git fedora: fix selection of rawhide The keys are sorted, but by using sorted() we were "sorting" again alphabetically, getting the order of "10", …, "36", "7", "8", "9". --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index a67f07820..ae7b6d91b 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1973,7 +1973,7 @@ def install_clear(args: CommandLineArguments, root: Path, do_run_build_script: b @complete_step("Installing Fedora Linux…") def install_fedora(args: CommandLineArguments, root: Path, do_run_build_script: bool) -> None: if args.release == "rawhide": - last = sorted(FEDORA_KEYS_MAP)[-1] + last = list(FEDORA_KEYS_MAP)[-1] warn(f"Assuming rawhide is version {last} — " + "You may specify otherwise with --release=rawhide-") args.releasever = last elif args.release.startswith("rawhide-"):