aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2010-01-22 02:05:26 +0100
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2010-01-22 02:05:26 +0100
commit5c626b9ecb68be1171d4769a016ae6ea7c1f7f2e (patch)
treed1d4862b34014734283e0697cb9de5dfd2f1f699
parent4a3ed909345a66e3f7fd5c2eea1eebb28abc3c62 (diff)
downloadpaludis-5c626b9ecb68be1171d4769a016ae6ea7c1f7f2e.tar.gz
paludis-5c626b9ecb68be1171d4769a016ae6ea7c1f7f2e.tar.xz
Fix error message
!!! ever at_least takes one or two extra arguments rather than !!! In ever at line 1276 !!! /usr/libexec/paludis/ebuild.bash at_least takes one or two extra arguments
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/ever_functions.bash24
1 files changed, 12 insertions, 12 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash b/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash
index 7025359..89b8d71 100644
--- a/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash
@@ -25,54 +25,54 @@ ever()
local r="1;"
case "${1}" in
split)
- [[ "${#@}" != 2 ]] && die "$0 $1 takes one extra argument"
+ [[ "${#@}" != 2 ]] && die "$FUNCNAME $1 takes one extra argument"
r=$(paludis_pipe_command EVER "$EAPI" SPLIT "${2:-${PV}}" )
;;
split_all)
- [[ "${#@}" != 2 ]] && die "$0 $1 takes one extra argument"
+ [[ "${#@}" != 2 ]] && die "$FUNCNAME $1 takes one extra argument"
r=$(paludis_pipe_command EVER "$EAPI" SPLIT_ALL "${2:-${PV}}" )
;;
major)
- [[ "${#@}" != 1 ]] && [[ "${#@}" != 2 ]] && die "$0 $1 takes zero or one extra arguments"
+ [[ "${#@}" != 1 ]] && [[ "${#@}" != 2 ]] && die "$FUNCNAME $1 takes zero or one extra arguments"
r=$(paludis_pipe_command EVER "$EAPI" RANGE 1 "${2:-${PV}}" )
;;
range)
- [[ "${#@}" != 2 ]] && [[ "${#@}" != 3 ]] && die "$0 $1 takes one or two extra arguments"
+ [[ "${#@}" != 2 ]] && [[ "${#@}" != 3 ]] && die "$FUNCNAME $1 takes one or two extra arguments"
r=$(paludis_pipe_command EVER "$EAPI" RANGE ${2} "${3:-${PV}}" )
;;
remainder)
- [[ "${#@}" != 1 ]] && [[ "${#@}" != 2 ]] && die "$0 $1 takes at most one extra argument"
+ [[ "${#@}" != 1 ]] && [[ "${#@}" != 2 ]] && die "$FUNCNAME $1 takes at most one extra argument"
r=$(paludis_pipe_command EVER "$EAPI" RANGE 2- "${2:-${PV}}" )
;;
replace)
- [[ "${#@}" != 3 ]] && [[ "${#@}" != 4 ]] && die "$0 $1 takes two or three extra arguments"
- [[ -z "${2}" ]] && die "$0 $1 takes a non-empty position as first argument"
+ [[ "${#@}" != 3 ]] && [[ "${#@}" != 4 ]] && die "$FUNCNAME $1 takes two or three extra arguments"
+ [[ -z "${2}" ]] && die "$FUNCNAME $1 takes a non-empty position as first argument"
r=$(paludis_pipe_command EVER "$EAPI" REPLACE "${2}" "${3}" "${4:-${PV}}" )
;;
replace_all)
- [[ "${#@}" != 2 ]] && [[ "${#@}" != 3 ]] && die "$0 $1 takes one or two extra arguments"
+ [[ "${#@}" != 2 ]] && [[ "${#@}" != 3 ]] && die "$FUNCNAME $1 takes one or two extra arguments"
r=$(paludis_pipe_command EVER "$EAPI" REPLACE_ALL "${2}" "${3:-${PV}}" )
;;
delete)
- [[ "${#@}" != 2 ]] && [[ "${#@}" != 3 ]] && die "$0 $1 takes one or two extra arguments"
- [[ -z "${2}" ]] && die "$0 $1 takes a non-empty position as first argument"
+ [[ "${#@}" != 2 ]] && [[ "${#@}" != 3 ]] && die "$FUNCNAME $1 takes one or two extra arguments"
+ [[ -z "${2}" ]] && die "$FUNCNAME $1 takes a non-empty position as first argument"
r=$(paludis_pipe_command EVER "$EAPI" REPLACE "${2}" "" "${3:-${PV}}" )
;;
delete_all)
- [[ "${#@}" != 1 ]] && [[ "${#@}" != 2 ]] && die "$0 $1 takes at most one extra argument"
+ [[ "${#@}" != 1 ]] && [[ "${#@}" != 2 ]] && die "$FUNCNAME $1 takes at most one extra argument"
r=$(paludis_pipe_command EVER "$EAPI" REPLACE_ALL "" "${2:-${PV}}" )
;;
at_least)
- [[ "${#@}" != 2 ]] && [[ "${#@}" != 3 ]] && die "$0 $1 takes one or two extra arguments"
+ [[ "${#@}" != 2 ]] && [[ "${#@}" != 3 ]] && die "$FUNCNAME $1 takes one or two extra arguments"
r=$(paludis_pipe_command EVER "$EAPI" AT_LEAST "${2}" "${3:-${PVR}}" )
;;