summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-07 10:32:00 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-07 10:32:00 +0200
commit8038b277f89fdca7999451b2c3f60aee3b571862 (patch)
treee5bf27bfae61ad0b158743e2a300ee6df18712aa
parent450ce5ae0eff2fc5bb84460ed682f7f497c4207b (diff)
pkg: Deprecated pkg upgrade in favour of pkg pull
-rwxr-xr-xbin/pkg3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index 3cdb3ab..f69cc0a 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -839,6 +839,9 @@ case $action in
status) wrap pkg_status "$1" 'Checking package status' ;;
update) pkg_update $* ;;
upgrade|pull)
+ if [[ $action == upgrade ]] {
+ warn "pkg updgrade is deprecated, use pkg pull instead\n"
+ }
(( AUTOUPDATE )) && pkg_update remote
wrap pkg_upgrade "$1" 'Looking for updates'
;;