]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
fedora: fix selection of rawhide 807/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Sep 2021 16:22:20 +0000 (18:22 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Sep 2021 16:23:54 +0000 (18:23 +0200)
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

index a67f078202a2809caa0630447ce8767ff1308eac..ae7b6d91b4068594d553bc0f6bfd3c3f1d852442 100644 (file)
@@ -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-<version>")
         args.releasever = last
     elif args.release.startswith("rawhide-"):