pmb.install._install: remove installation of lang

lang gets moved to `_pmb_recommends` of postmarketos-base-ui to allow
switching between languages on en_US devices

Closes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/3314

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2547
This commit is contained in:
fossdd 2025-02-04 19:17:55 +01:00 committed by Oliver Smith
parent ca1f87b873
commit 9656c53a6a
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -1332,9 +1332,6 @@ def create_device_rootfs(args: PmbArgs, step: int, steps: int) -> None:
install_packages += context.config.extra_packages.split(",") install_packages += context.config.extra_packages.split(",")
if args.add: if args.add:
install_packages += args.add.split(",") install_packages += args.add.split(",")
locale_is_set = config.locale != Config().locale
if locale_is_set:
install_packages += ["lang"]
pmaports_cfg = pmb.config.pmaports.read_config() pmaports_cfg = pmb.config.pmaports.read_config()
# postmarketos-base supports a dummy package for blocking unl0kr install # postmarketos-base supports a dummy package for blocking unl0kr install
@ -1387,7 +1384,7 @@ def create_device_rootfs(args: PmbArgs, step: int, steps: int) -> None:
setup_timezone(chroot, config.timezone) setup_timezone(chroot, config.timezone)
# Set locale # Set locale
if locale_is_set: if config.locale != Config().locale:
setup_locale(chroot, config.locale) setup_locale(chroot, config.locale)
# Set the hostname as the device name # Set the hostname as the device name