[pacman-dev] [PATCH 1/4] makepkg: ignore empty global attributes for SRCINFO

Dave Reisner dreisner at archlinux.org
Tue Nov 4 13:10:20 UTC 2014


---
 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 86f8a77..9048676 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
 }
 
-- 
2.1.3


More information about the pacman-dev mailing list