From 003a35be3d908431c25f7fa9d7a7dd6beb8e0fe1 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 12 Feb 2022 21:47:51 +1100 Subject: Fix errors on selection of additional packages (#959) * Fix errors on selection of additional packages * Fix flake8 * Added the new /groups/search/json/?name=x endpoint merged today * Fixed flake8 complaint * Forgot to do json.loads() on the HTTP request result * Update package selection * Fix flake8 Co-authored-by: Daniel Girtler Co-authored-by: Anton Hvornum --- examples/guided.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/guided.py') diff --git a/examples/guided.py b/examples/guided.py index 16fda4c3..7af7f57c 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -241,10 +241,12 @@ if not (archinstall.check_mirror_reachable() or archinstall.arguments.get('skip- exit(1) if not archinstall.arguments.get('offline', False): + latest_version_archlinux_keyring = max([k.pkg_version for k in archinstall.find_package('archlinux-keyring')]) + # If we want to check for keyring updates # and the installed package version is lower than the upstream version if archinstall.arguments.get('skip-keyring-update', False) is False and \ - archinstall.installed_package('archlinux-keyring') < archinstall.find_package('archlinux-keyring'): + archinstall.installed_package('archlinux-keyring').version < latest_version_archlinux_keyring: # Then we update the keyring in the ISO environment if not archinstall.update_keyring(): -- cgit v1.2.3-70-g09d2