Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-10-20 17:33:02 -0400
committerAllan McRae <allan@archlinux.org>2014-11-09 13:46:51 +1000
commit03aa44a3ecab8ede51d3a6a780017b59babe2965 (patch)
tree62c009140aebd89b74fbd14dfb39ecdbe22ae263
parentf77933ea1e45638d518206c839315d3feece2c01 (diff)
makepkg: ignore empty global attributes in extraction
This bug isn't currently exposed by any of the existing codepaths, but an upcoming patch to introduce SRCINFO files to makepkg will expose this. Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 86f8a773..90486767 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2385,7 +2385,7 @@ extract_global_var() {
array_build ref "$attr"
[[ ${ref[@]} ]] && array_build "$outputvar" "$attr"
else
- [[ -v $attr ]] && printf -v "$outputvar" %s "${!attr}"
+ [[ ${!attr} ]] && printf -v "$outputvar" %s "${!attr}"
fi
}