From d9118a33b3a25839fde8626cde313115ddb79376 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 13 Feb 2022 10:30:49 -0500 Subject: Switch from flags to an 'additional repository' menu (#977) * Add multilib flag to enable this repository and enable multi-lib testing if testing flag is also passed * Fix comments * Attempt to force pacman to use the config file from the host * Make sure the pacman configuration is copied to target * flake8 * Call enable on additional-repositories * Add method to select additional repositories * Add menu option for additional repos * This is a bit cleaner than having it all on one line * Add import * Use [] as default instead of None * Use empty array for default option here * Try this to ensure a valid array is returned on skipping * Add additional-repositories to schema * Missed changing this comment earlier --- archinstall/lib/menu/selection_menu.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'archinstall/lib/menu') diff --git a/archinstall/lib/menu/selection_menu.py b/archinstall/lib/menu/selection_menu.py index b6258d8c..97dfd2a7 100644 --- a/archinstall/lib/menu/selection_menu.py +++ b/archinstall/lib/menu/selection_menu.py @@ -32,6 +32,7 @@ from ..user_interaction import select_encrypted_partitions from ..user_interaction import select_harddrives from ..user_interaction import select_profile from ..user_interaction import select_archinstall_language +from ..user_interaction import select_additional_repositories from ..translation import Translation class Selector: @@ -498,6 +499,11 @@ class GlobalMenu(GeneralMenu): _('Additional packages to install'), lambda: ask_additional_packages_to_install(storage['arguments'].get('packages', None)), default=[]) + self._menu_options['additional-repositories'] = \ + Selector( + _('Additional repositories to enable'), + lambda: select_additional_repositories(), + default=[]) self._menu_options['nic'] = \ Selector( _('Configure network'), -- cgit v1.2.3-70-g09d2