Skip to content

Commit

Permalink
Sort packages when listing and installing new packages
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtrafford committed Jul 22, 2024
1 parent b56ec67 commit 6f5ba3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rootfs/web-admin/admin-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ def get_packages_install(self, *path_suffix):
self.list_package_instructions()
self.p("Packages placed on the USB stick can be navigated to below:")
root, glob_list = glob_dir('*.zpg', *path_suffix)
glob_list.sort()
if glob_list:
self.h2("Available in %s:" % tt(root))
self.t("form_select.html", label="Install Selected Packages",
Expand Down Expand Up @@ -398,6 +399,7 @@ def post_packages_install(self, *path_suffix):
ensure_usb_key_inserted()
root = os.path.join(MNT, *path_suffix)
packages = [os.path.join(root, f) for f in self.get_arguments('value')]
packages.sort()
yield self.zpkg("install", *packages)

@coroutine
Expand Down

0 comments on commit 6f5ba3e

Please sign in to comment.