libmakepkg: make configured BUILDENV readonly

PKGBUILDs should not be directly adjusting this variable

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2024-05-20 21:08:53 +10:00
parent b013ca4221
commit f0a7f85dbb

View file

@ -77,5 +77,8 @@ load_makepkg_config() {
source_makepkg_config "$MAKEPKG_CONF" source_makepkg_config "$MAKEPKG_CONF"
# prevent PKGBUILDs altering this directly
readonly -a BUILDENV
eval "$restore_envvars" eval "$restore_envvars"
} }