aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild
diff options
context:
space:
mode:
authorAvatar Bo Ørsted Andresen <bo.andresen@zlin.dk> 2016-01-15 00:37:38 +0100
committerAvatar Bo Ørsted Andresen <zlin@exherbo.org> 2016-02-19 19:33:10 +0100
commit46bab1c193a83ba35e3e1163812dcc75267a461a (patch)
tree4a0f3c93cf6b7ec290411401237cbac7cd85fbd0 /paludis/repositories/e/ebuild
parent054f41f3d4cb3167fb4f6dfb694d5111e36dcb44 (diff)
downloadpaludis-46bab1c193a83ba35e3e1163812dcc75267a461a.tar.gz
paludis-46bab1c193a83ba35e3e1163812dcc75267a461a.tar.xz
Support emptying a default set exparam array.
Add test to verify an exarray with a non-empty default value can be emptied with an empty require parameter. Change-Id: I633f4baa6eaf297308e08ac3899c8821e88f3591 Reviewed-on: https://galileo.mailstation.de/gerrit/4944 Reviewed-by: Bo Ørsted Andresen <zlin@exherbo.org>
Diffstat (limited to 'paludis/repositories/e/ebuild')
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash b/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
index 0ee74edc4..380827260 100644
--- a/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
@@ -116,7 +116,7 @@ myexparam()
fi
v=$(exparam_var_name ${CURRENT_EXLIB})_${v%\[\]}
- if [[ -z ${!v+set} && ${1} == *=* ]]; then
+ if ! declare -p ${v} &>/dev/null && [[ ${1} == *=* ]]; then
if [[ ${1} == *=\[ && ${#} -gt 1 ]]; then
shift
local i a=()