[pacman-dev] [PATCH 2/2] makepkg: allow to substitute with existing vars

Techlive Zheng techlivezheng at gmail.com
Thu Oct 3 03:49:34 EDT 2013


---
 scripts/makepkg.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index f6d884f..1736dc7 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2809,7 +2809,7 @@ fi
 
 # override settings from extra variables on commandline, if any
 if (( ${#extra_environment[*]} )); then
-	export "${extra_environment[@]}"
+	eval export "${extra_environment[@]}"
 fi
 
 # set pkgdir to something "sensible" for (not recommended) use during build()
-- 
1.8.4



More information about the pacman-dev mailing list