Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
authorDaniel <blackrabbit256@gmail.com>2022-02-12 21:47:51 +1100
committerGitHub <noreply@github.com>2022-02-12 11:47:51 +0100
commit003a35be3d908431c25f7fa9d7a7dd6beb8e0fe1 (patch)
treef7a6dd321bed2ff2a17f438847532efb6d1eda97 /examples/guided.py
parent16716d94ebf5197f9c4c0e8cbc50709b4e6931ef (diff)
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 <girtler.daniel@gmail.com> Co-authored-by: Anton Hvornum <anton@hvornum.se>
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py4
1 files changed, 3 insertions, 1 deletions
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():