aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-03-20 00:32:41 +0100
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-03-20 01:31:04 +0100
commitbd997cad023cd799551a1c2e7463e2006ae26b46 (patch)
treeaefc43cded3b89b1642674ae85cbd768b9fd8f79
parentb66e82ad199907124c3de966ecbc12f4cca113ea (diff)
downloadpaludis-bd997cad023cd799551a1c2e7463e2006ae26b46.tar.gz
paludis-bd997cad023cd799551a1c2e7463e2006ae26b46.tar.xz
ever: Make all ever commands, except 'ever at_least' default to ${PV} when an optional version argument is omitted
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/ever_functions.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash b/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash
index d59717f..7025359 100644
--- a/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/ever_functions.bash
@@ -26,22 +26,22 @@ ever()
case "${1}" in
split)
[[ "${#@}" != 2 ]] && die "$0 $1 takes one extra argument"
- r=$(paludis_pipe_command EVER "$EAPI" SPLIT "${2}" )
+ r=$(paludis_pipe_command EVER "$EAPI" SPLIT "${2:-${PV}}" )
;;
split_all)
[[ "${#@}" != 2 ]] && die "$0 $1 takes one extra argument"
- r=$(paludis_pipe_command EVER "$EAPI" SPLIT_ALL "${2}" )
+ r=$(paludis_pipe_command EVER "$EAPI" SPLIT_ALL "${2:-${PV}}" )
;;
major)
[[ "${#@}" != 1 ]] && [[ "${#@}" != 2 ]] && die "$0 $1 takes zero or one extra arguments"
- r=$(paludis_pipe_command EVER "$EAPI" RANGE 1 "${2:-${PVR}}" )
+ r=$(paludis_pipe_command EVER "$EAPI" RANGE 1 "${2:-${PV}}" )
;;
range)
[[ "${#@}" != 2 ]] && [[ "${#@}" != 3 ]] && die "$0 $1 takes one or two extra arguments"
- r=$(paludis_pipe_command EVER "$EAPI" RANGE ${2} "${3:-${PVR}}" )
+ r=$(paludis_pipe_command EVER "$EAPI" RANGE ${2} "${3:-${PV}}" )
;;
remainder)