From: Peter Maydell Date: Sat, 5 Mar 2022 10:57:41 +0000 (+0000) Subject: nsis installer: List emulators in alphabetical order X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e422d92a23c543e9649feba227eec58a5aaba483;p=qemu.git nsis installer: List emulators in alphabetical order We currently list the emulators in the Windows installer's dialog in an essentially random order (it's whatever glob.glob() returns them to, which is filesystem-implementation-dependent). Add a call to sorted() so they appear in alphabetical order. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Stefan Weil Reviewed-by: John Snow Message-id: 20220305105743.2384766-2-peter.maydell@linaro.org --- diff --git a/scripts/nsis.py b/scripts/nsis.py index 5135a05831..383bef7033 100644 --- a/scripts/nsis.py +++ b/scripts/nsis.py @@ -34,9 +34,9 @@ def main(): with open( os.path.join(destdir + args.prefix, "system-emulations.nsh"), "w" ) as nsh: - for exe in glob.glob( + for exe in sorted(glob.glob( os.path.join(destdir + args.prefix, "qemu-system-*.exe") - ): + )): exe = os.path.basename(exe) arch = exe[12:-4] nsh.write(