1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

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>
This commit is contained in:
Dave Reisner 2014-10-20 17:33:02 -04:00 committed by Allan McRae
parent f77933ea1e
commit 03aa44a3ec

View File

@ -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
}