From ad8e9db16545c830a385318202abde459723062b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 10 Sep 2021 18:22:20 +0200 Subject: [PATCH] fedora: fix selection of rawhide MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The keys are sorted, but by using sorted() we were "sorting" again alphabetically, getting the order of "10", …, "36", "7", "8", "9". --- mkosi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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-"): -- 2.47.2