aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-01 01:04:09 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-01 01:04:09 +0000
commit2a73eafe414847de29136133aad15ba111ee6ddb (patch)
tree00a671299474a9880896de7fcdf10d24893dacee
parent48bee7c883f9e1d8a3aa5cf45430163b32196070 (diff)
downloadpaludis-2a73eafe414847de29136133aad15ba111ee6ddb.tar.gz
paludis-2a73eafe414847de29136133aad15ba111ee6ddb.tar.xz
Make portageq has_version call has_version
-rw-r--r--ebuild/portage_stubs.bash11
1 files changed, 10 insertions, 1 deletions
diff --git a/ebuild/portage_stubs.bash b/ebuild/portage_stubs.bash
index 674a9df..b7f7303 100644
--- a/ebuild/portage_stubs.bash
+++ b/ebuild/portage_stubs.bash
@@ -29,7 +29,16 @@ has_version()
portageq()
{
- die "portageq not implemented"
+ if [[ "$1" == "has_version" ]] ; then
+ if [[ "$2" != "$ROOT" ]] ; then
+ die "portageq has_version emulation only works on current ROOT"
+ else
+ shift ; shift
+ has_version "$@"
+ fi
+ else
+ die "portageq emulation for $1 not implemented"
+ fi
}
best_version()