index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Dylan M. Taylor <dylan@dylanmtaylor.com> | 2022-02-13 10:30:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-13 16:30:49 +0100 |
commit | d9118a33b3a25839fde8626cde313115ddb79376 (patch) | |
tree | c8ba007ac0e60f9c9cb2713fb087d9c957a65d13 /archinstall | |
parent | 67b922002a30744ba35b36119bed650063e26d35 (diff) |
-rw-r--r-- | archinstall/lib/menu/selection_menu.py | 6 | ||||
-rw-r--r-- | archinstall/lib/user_interaction.py | 22 |
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'), diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py index 66ad3e2a..f8822bac 100644 --- a/archinstall/lib/user_interaction.py +++ b/archinstall/lib/user_interaction.py @@ -966,6 +966,28 @@ def select_kernel() -> List[str]: ).run() return selected_kernels +def select_additional_repositories() -> List[str]: + """ + Allows the user to select additional repositories (multilib, and testing) if desired. + + :return: The string as a selected repository + :rtype: string + """ + + repositories = ["multilib", "testing"] + + additional_repositories = Menu( + _('Choose which optional additional repositories to enable'), + repositories, + sort=False, + multi=True, + default_option=[] + ).run() + + if additional_repositories is not None: + return additional_repositories + + return [] def select_locale_lang(default): locales = list_locales() |