Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2022-08-11 05:32:33 -0400
committerGitHub <noreply@github.com>2022-08-11 11:32:33 +0200
commit397cceca90592ec39a594cd8fa5215b64d7238ae (patch)
tree731f50e612a954798f165fbcef309b06711200d7 /examples
parent259aaa488428aa5647d27ebb8e4678829e793dc2 (diff)
Fix check for additional repositories (#1391)
* Fix typos * Fix check for additional repositories
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py8
1 files changed, 6 insertions, 2 deletions
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())