aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2009-11-28 20:03:04 +0000
committerAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2009-11-28 20:03:04 +0000
commite43f9a6d5714d54973c292c14a0b1ca9dd054873 (patch)
treec9a623cd4e518379d36a9d3fe9cad0b6b87f8c87
parent4a4d8760dbbbdd23d1da2bd5c09ac998ed9dd45e (diff)
downloadpaludis-e43f9a6d5714d54973c292c14a0b1ca9dd054873.tar.gz
paludis-e43f9a6d5714d54973c292c14a0b1ca9dd054873.tar.xz
Ban has_version and best_version in global space.
-rwxr-xr-xpaludis/repositories/e/ebuild/exheres-0/portage_stubs.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/portage_stubs.bash b/paludis/repositories/e/ebuild/exheres-0/portage_stubs.bash
index e017abc..2eff448 100755
--- a/paludis/repositories/e/ebuild/exheres-0/portage_stubs.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/portage_stubs.bash
@@ -22,6 +22,7 @@
has_version()
{
+ illegal_in_global_scope
[[ "${#@}" -ne 1 ]] && die "$0 should take exactly one arg"
local r=$(paludis_pipe_command HAS_VERSION "$EAPI" "$1" )
return ${r%%;*}
@@ -34,6 +35,7 @@ portageq()
best_version()
{
+ illegal_in_global_scope
[[ "${#@}" -ne 1 ]] && die "$0 should take exactly one arg"
local r=$(paludis_pipe_command BEST_VERSION "$EAPI" "$1" )
echo ${r#*;}