summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-09-09 18:02:23 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-09-09 18:02:23 +0200
commit26ca610f53b07d8cf2acdc6dd93b17af175419fb (patch)
tree8390a5301aeaf89b8a6f6d9c6dcb5d6e6f13869f /bin
parent80bc4d944854d35b17192f257459bf9d978f29f4 (diff)
Removed deprecated invocations and pkg.conf support
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ct25
1 files changed, 3 insertions, 22 deletions
diff --git a/bin/ct b/bin/ct
index 8c586db..7645107 100755
--- a/bin/ct
+++ b/bin/ct
@@ -49,12 +49,6 @@ if [[ -r $XDG_CONFIG_HOME/caretaker/caretaker.conf ]] {
source $XDG_CONFIG_HOME/caretaker/caretaker.conf
} elif [[ -r $HOME/.caretaker.conf ]] {
source $HOME/.caretaker.conf
-} elif [[ -r $XDG_CONFIG_HOME/pkg/pkg.conf ]] {
- warn "pkg was renamed to caretaker, so move your config to $XDG_CONFIG_HOME/caretaker/caretaker.conf\n"
- source $XDG_CONFIG_HOME/pkg/pkg.conf
-} elif [[ -r $HOME/.pkg.conf ]] {
- warn "pkg was renamed to caretaker, so move your config to $HOME/.caretaker.conf\n"
- source $HOME/.pkg.conf
}
# Parse commandline options
@@ -855,18 +849,8 @@ cd $PKG_DIR || die "Cannot cd $PKG_DIR"
# Note:
# wrap foobar "$1" <- the "" are neccessary here, since $1 is optional (and therefore may be empty)
case $action in
- a|add|install)
- if [[ $action == install ]] {
- warn "ct install is deprecated, use ct add instead\n"
- }
- pkg_add $*
- ;;
- rm|delete|remove)
- if [[ $action == delete ]] {
- warn "ct delete is deprecated, use ct remove instead\n"
- }
- pkg_remove $*
- ;;
+ a|add) pkg_add $* ;;
+ rm|remove) pkg_remove $* ;;
i|info) pkg_info $* ;;
ls|list) pkg_list $* ;;
l|log) pkg_log $* ;;
@@ -877,10 +861,7 @@ case $action in
r|refresh) wrap pkg_refresh "$1" 'Refreshing' ;;
s|status) wrap pkg_status "$1" 'Checking package status' ;;
u|update) pkg_update $* ;;
- f|upgrade|pull)
- if [[ $action == upgrade ]] {
- warn "ct updgrade is deprecated, use ct pull instead\n"
- }
+ f|pull)
(( AUTOUPDATE )) && pkg_update remote
wrap pkg_upgrade "$1" 'Looking for updates'
;;