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:
parent
b013ca4221
commit
f0a7f85dbb
1 changed files with 3 additions and 0 deletions
|
@ -77,5 +77,8 @@ load_makepkg_config() {
|
|||
|
||||
source_makepkg_config "$MAKEPKG_CONF"
|
||||
|
||||
# prevent PKGBUILDs altering this directly
|
||||
readonly -a BUILDENV
|
||||
|
||||
eval "$restore_envvars"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue