Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/profile/profiles_handler.py
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-04-22 16:04:36 +1000
committerGitHub <noreply@github.com>2023-04-22 08:04:36 +0200
commit32982b880bd4e76b158442e444c001f8ebd8bb06 (patch)
tree5a826abdc1f799a826ac228de8eca96841f067fd /archinstall/lib/profile/profiles_handler.py
parent00b0ae7ba439a5a420095175b3bedd52c569db51 (diff)
Fix import and configuration loading issues (#1764)
* Fix import and configuration loading issues * Fix mypy --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib/profile/profiles_handler.py')
-rw-r--r--archinstall/lib/profile/profiles_handler.py44
1 files changed, 22 insertions, 22 deletions
diff --git a/archinstall/lib/profile/profiles_handler.py b/archinstall/lib/profile/profiles_handler.py
index 063b12ea..a8b5cc22 100644
--- a/archinstall/lib/profile/profiles_handler.py
+++ b/archinstall/lib/profile/profiles_handler.py
@@ -71,28 +71,28 @@ class ProfileHandler:
else:
self._import_profile_from_url(url_path)
- if custom := profile_config.get('custom', None):
- from archinstall.default_profiles.custom import CustomTypeProfile
- custom_types = []
-
- for entry in custom:
- custom_types.append(
- CustomTypeProfile(
- entry['name'],
- entry['enabled'],
- entry.get('packages', []),
- entry.get('services', [])
- )
- )
-
- self.remove_custom_profiles(custom_types)
- self.add_custom_profiles(custom_types)
-
- # this doesn't mean it's actual going to be set as a selection
- # but we are simply populating the custom profile with all
- # possible custom definitions
- if custom_profile := self.get_profile_by_name('Custom'):
- custom_profile.set_current_selection(custom_types)
+ # if custom := profile_config.get('custom', None):
+ # from archinstall.default_profiles.custom import CustomTypeProfile
+ # custom_types = []
+ #
+ # for entry in custom:
+ # custom_types.append(
+ # CustomTypeProfile(
+ # entry['name'],
+ # entry['enabled'],
+ # entry.get('packages', []),
+ # entry.get('services', [])
+ # )
+ # )
+ #
+ # self.remove_custom_profiles(custom_types)
+ # self.add_custom_profiles(custom_types)
+ #
+ # # this doesn't mean it's actual going to be set as a selection
+ # # but we are simply populating the custom profile with all
+ # # possible custom definitions
+ # if custom_profile := self.get_profile_by_name('Custom'):
+ # custom_profile.set_current_selection(custom_types)
if main := profile_config.get('main', None):
profile = self.get_profile_by_name(main) if main else None