qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/3] nsis installer: List emulators in alphabetical order


From: Stefan Weil
Subject: Re: [PATCH 1/3] nsis installer: List emulators in alphabetical order
Date: Sat, 5 Mar 2022 15:07:23 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1

Am 05.03.22 um 11:57 schrieb Peter Maydell:

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>
---
  scripts/nsis.py | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/nsis.py b/scripts/nsis.py
index 5135a058316..383bef70332 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(


Reviewed-by: Stefan Weil <sw@weilnetz.de>


Attachment: OpenPGP_0xE08C21D5677450AD.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]