diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2022-03-05 10:57:41 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-03-18 10:55:15 +0000 |
commit | e422d92a23c543e9649feba227eec58a5aaba483 (patch) | |
tree | d6074589a8db2d5adea45a58be3a24a56a23166a /scripts | |
parent | 75f7ba165cea75594eb6bd5210119abe0d4c198a (diff) | |
download | qemu-e422d92a23c543e9649feba227eec58a5aaba483.zip qemu-e422d92a23c543e9649feba227eec58a5aaba483.tar.gz qemu-e422d92a23c543e9649feba227eec58a5aaba483.tar.bz2 |
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 <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20220305105743.2384766-2-peter.maydell@linaro.org
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/nsis.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/nsis.py b/scripts/nsis.py index 5135a05..383bef7 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( |