Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-11 20:28:51 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-11 20:28:51 +0000
commit9ad56f3462f8de25e8cae8905a5b04e228aef071 (patch)
tree5b5555311084a6c48a29596654222979aade3e06
parentcb6ab2c28ba9ae2088ae3f6a32720159469d550e (diff)
Created a default package entry in the _guided storage.
-rw-r--r--examples/guided.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index f1dff059..9c5f083e 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -52,7 +52,7 @@ def perform_installation(device, boot_partition, language, mirrors):
if archinstall.storage['_guided']['network']:
installation.configure_nic(**archinstall.storage['_guided']['network'])
- if len(archinstall.storage['_guided']['packages']) and archinstall.storage['_guided']['packages'][0] != '':
+ if archinstall.storage['_guided']['packages'] and archinstall.storage['_guided']['packages'][0] != '':
installation.add_additional_packages(archinstall.storage['_guided']['packages'])
if 'profile' in archinstall.storage['_guided'] and len(profile := archinstall.storage['_guided']['profile']['path'].strip()):
@@ -170,6 +170,7 @@ while 1:
break
# Additional packages (with some light weight error handling for invalid package names)
+archinstall.storage['_guided']['packages'] = None
while 1:
packages = [package for package in input('Additional packages aside from base (space separated): ').split(' ') if len(package)]