aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-06 06:20:26 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-06 06:20:26 +0000
commit2c46b4449c7bbef5be5c75a4ca1e67aa8e31783a (patch)
tree19298a102e2ba8af8c79cece283dc3e765b237fb
parent7bc04681ef00f381ed52c8669ccf5de8c5dc2dfb (diff)
downloadpaludis-2c46b4449c7bbef5be5c75a4ca1e67aa8e31783a.tar.gz
paludis-2c46b4449c7bbef5be5c75a4ca1e67aa8e31783a.tar.xz
Improve the portageq emulation error messages
-rw-r--r--ebuild/portage_stubs.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/ebuild/portage_stubs.bash b/ebuild/portage_stubs.bash
index ea59893..f58b666 100644
--- a/ebuild/portage_stubs.bash
+++ b/ebuild/portage_stubs.bash
@@ -31,6 +31,7 @@ portageq()
# \todo Make this suck less...
if [[ "$1" == "has_version" ]] ; then
if [[ "$2" != "$ROOT" ]] ; then
+ eerror "Error emulating 'portageq $@':"
die "portageq has_version emulation only works on current ROOT"
else
shift ; shift
@@ -38,12 +39,14 @@ portageq()
fi
elif [[ "$1" == "best_version" ]] ; then
if [[ "$2" != "$ROOT" ]] ; then
+ eerror "Error emulating 'portageq $@':"
die "portageq best_version emulation only works on current ROOT"
else
shift ; shift
best_version "$@"
fi
else
+ eerror "Error emulating 'portageq $@':"
die "portageq emulation for $1 not implemented"
fi
}