Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 13:39:12 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-05-15 13:39:12 -0400
commit5067aaa260d218f7d1d60ada2fe8413e90970060 (patch)
tree7db58a8b4e1c640dc16d0060704f3b304a4e325d /examples
parenta475852d7a5d4a08ab1679ff49a7270f7b5f5bea (diff)
Change mirror get check as suggested
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 2a5f57ab..ae5c5f54 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -319,7 +319,7 @@ def perform_installation(mountpoint):
archinstall.use_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors for the live medium
if installation.minimal_installation():
installation.set_hostname(archinstall.arguments['hostname'])
- if archinstall.arguments['mirror-region'].get("mirrors", {}) is not None:
+ if archinstall.arguments['mirror-region'].get("mirrors", None) is not None:
installation.set_mirrors(archinstall.arguments['mirror-region']) # Set the mirrors in the installation medium
if archinstall.arguments["bootloader"]=="grub-install" and hasUEFI()==True:
installation.add_additional_packages("grub")