From 397cceca90592ec39a594cd8fa5215b64d7238ae Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Thu, 11 Aug 2022 05:32:33 -0400 Subject: Fix check for additional repositories (#1391) * Fix typos * Fix check for additional repositories --- archinstall/lib/installer.py | 2 +- examples/guided.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 798801aa..8b87b072 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -705,7 +705,7 @@ class Installer: self.log("The multilib flag is set. This system will be installed with the multilib repository enabled.") self.enable_multilib_repository() else: - self.log("The testing flag is not set. This system will be installed without testing repositories enabled.") + self.log("The multilib flag is not set. This system will be installed without multilib repositories enabled.") if testing: self.log("The testing flag is set. This system will be installed with testing repositories enabled.") diff --git a/examples/guided.py b/examples/guided.py index bbf19bf9..ffbc6226 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -185,8 +185,12 @@ def perform_installation(mountpoint): archinstall.use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium # Retrieve list of additional repositories and set boolean values appropriately - enable_testing = 'testing' in archinstall.arguments.get('additional-repositories', None) - enable_multilib = 'multilib' in archinstall.arguments.get('additional-repositories', None) + if archinstall.arguments.get('additional-repositories', None) is not None: + enable_testing = 'testing' in archinstall.arguments.get('additional-repositories', None) + enable_multilib = 'multilib' in archinstall.arguments.get('additional-repositories', None) + else: + enable_testing = False + enable_multilib = False if installation.minimal_installation(testing=enable_testing, multilib=enable_multilib): installation.set_locale(archinstall.arguments['sys-language'], archinstall.arguments['sys-encoding'].upper()) -- cgit v1.2.3-70-g09d2