diff options
author | 2011-06-07 19:09:22 +0800 | |
---|---|---|
committer | 2011-06-09 14:41:23 +0300 | |
commit | a889b494b9dd8bf31336fe9dced8fe6e755e1e6b (patch) | |
tree | 687012b71dd25c668a3b35268fdefab0f70afade /utils | |
parent | Core: fix function handling (diff) | |
download | libbash-a889b494b9dd8bf31336fe9dced8fe6e755e1e6b.tar.gz libbash-a889b494b9dd8bf31336fe9dced8fe6e755e1e6b.tar.bz2 libbash-a889b494b9dd8bf31336fe9dced8fe6e755e1e6b.zip |
Utility: fix some Portage functions
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/isolated-functions.sh | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/utils/isolated-functions.sh b/utils/isolated-functions.sh index d4073dc..9d189ed 100755 --- a/utils/isolated-functions.sh +++ b/utils/isolated-functions.sh @@ -1,9 +1,9 @@ die(){ - echo "Die is called. Something went wrong while interpreting" + echo "Die is called: $*" } has() { - hasq "$@" + hasq $* } hasq() { @@ -17,32 +17,33 @@ hasq() { EXPORT_FUNCTIONS() { if [ -z "$ECLASS" ]; then die "EXPORT_FUNCTIONS without a defined ECLASS" + return 1 fi - $__export_funcs_var="$__export_funcs_var $*" + __export_funcs_var="$__export_funcs_var $*" } use() { - echo "use should be called" + echo "use shouldn't be called" return 1 } useq() { - echo "useq should be called" + echo "useq shouldn't be called" return 1 } use_with() { - echo "use_with should be called" + echo "use_with shouldn't be called" return 1 } use_enable() { - echo "use_enable should be called" + echo "use_enable shouldn't be called" return 1 } eerror() { - echo "eerror: $*" >&2 + echo "eerror: $*" } debug-print() { @@ -50,5 +51,5 @@ debug-print() { } ewarn() { - echo "ewarn: $*" >&2 + echo "ewarn: $*" } |