From c987638443ed2e58e464bf0574a63639e521a95d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Jul 2009 10:49:30 +0200 Subject: pkg: Deprecated pkg install and pkg delete as well --- bin/pkg | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index 471f3a9..e174861 100755 --- a/bin/pkg +++ b/bin/pkg @@ -825,9 +825,15 @@ cd $PKG_DIR || die "Cannot cd $PKG_DIR" # wrap foobar "$1" <- the "" are neccessary here, since $1 is optional (and therefore may be empty) case $action in add|install) + if [[ $action == install ]] { + warn "pkg install is deprecated, use pkg add instead\n" + } pkg_add $* ;; delete|remove) + if [[ $action == delete ]] { + warn "pkg delete is deprecated, use pkg remove instead\n" + } pkg_remove $* ;; info) pkg_info $* ;; -- cgit v1.2.3