Reverted last commit and added debugging in guided instead

This commit is contained in:
Anton Hvornum 2020-12-06 11:58:16 +01:00
parent 017b4b4fa9
commit 9fb08387de
2 changed files with 2 additions and 8 deletions

View File

@ -168,14 +168,6 @@ class Application(Profile):
# Try to locate all local or known URL's
examples = list_profiles(subpath='/applications')
import time
print(self.profile)
print('Examples:', examples)
print(f"{self.profile}" in examples)
print(f"{self.profile}.py" in examples)
print(os.path.isfile(self.profile))
time.sleep(30)
if f"{self.profile}" in examples:
return self.localize_path(examples[self.profile]['path'])
# TODO: Redundant, the below block shouldnt be needed as profiles are stripped of their .py, but just in case for now:

View File

@ -56,6 +56,8 @@ def perform_installation(device, boot_partition, language, mirrors):
if archinstall.storage['_guided']['packages'] and archinstall.storage['_guided']['packages'][0] != '':
installation.add_additional_packages(archinstall.storage['_guided']['packages'])
print('Installing:', archinstall.storage['_guided']['profile']['path'].strip())
time.sleep(10)
if 'profile' in archinstall.storage['_guided'] and len(profile := archinstall.storage['_guided']['profile']['path'].strip()):
installation.install_profile(profile)