aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <zlin@exherbo.org> 2008-10-26 08:29:04 +0100
committerAvatar Bo ├śrsted Andresen <zlin@exherbo.org> 2008-10-26 08:30:38 +0100
commit6d533ba362502f2b2d6cab645d248c6daae8f4db (patch)
tree8fefb8a0d9c7c8abd8d2b81254b920dc763dee4e
parentfa60a909b04ba84d79556e7df7dd7d22e513302c (diff)
downloadpaludis-6d533ba362502f2b2d6cab645d248c6daae8f4db.tar.gz
paludis-6d533ba362502f2b2d6cab645d248c6daae8f4db.tar.xz
Fix option !foo.
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/list_functions.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/list_functions.bash b/paludis/repositories/e/ebuild/exheres-0/list_functions.bash
index 0c5e076..e7d0dfd 100644
--- a/paludis/repositories/e/ebuild/exheres-0/list_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/list_functions.bash
@@ -61,10 +61,11 @@ optionq()
[[ "${#@}" -ne 1 ]] && die "$0 should take exactly one arg"
if [[ "${1:0:1}" == "!" ]] ; then
local r=$(paludis_pipe_command OPTIONQ "$EAPI" "${1#!}" )
+ return $((! ${r%%;*}))
else
local r=$(paludis_pipe_command OPTIONQ "$EAPI" "$1" )
+ return ${r%%;*}
fi
- return ${r%%;*}
}
has()