Skip to content

Commit

Permalink
Revert "adjusted my script"
Browse files Browse the repository at this point in the history
This reverts commit 1314c60.
  • Loading branch information
ScarletEmanu committed Dec 21, 2024
1 parent 1314c60 commit b0379f3
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions archinstall/scripts/guided_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@ def ask_user_questions() -> None:

global_menu.run()

def purify_packages(packages: str | list[str]):
if isinstance(packages, str):
packages = [packages]

for pkg in packages:
if pkg.find("$LOCALE"):
locale_conf : locale.LocaleConfiguration = archinstall.arguments['locale_config']
pkg.replace("$LOCALE", locale_conf.sys_lang)



def perform_installation(mountpoint: Path) -> None:
"""
Expand Down Expand Up @@ -120,16 +110,8 @@ def perform_installation(mountpoint: Path) -> None:
else:
info("No audio server will be installed")

if packages := archinstall.arguments.get('packages', None) and (packages != '' or packages != list() or packages != dict()):
if(isinstance(packages, dict)):
packages = {"general": packages}

for pkgs in packages.values():
if len(pkgs) != 0:
#modifico leggermente i nomi dei pacchetti: $LOCALE è il locale dell'installazione
purify_packages(pkgs)

installation.add_additional_packages(pkgs)
if archinstall.arguments.get('packages', None) and archinstall.arguments.get('packages', None)[0] != '':
installation.add_additional_packages(archinstall.arguments.get('packages', None))

if profile_config := archinstall.arguments.get('profile_config', None):
profile_handler.install_profile_config(installation, profile_config)
Expand Down

0 comments on commit b0379f3

Please sign in to comment.