diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/simplaret | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/simplaret b/src/simplaret index f0d3ae6..d27bc34 100755 --- a/src/simplaret +++ b/src/simplaret @@ -23,7 +23,7 @@ COMMON="/usr/libexec/simplepkg/common.sh" function simplaret_usage { echo "usage: [ARCH=otherarch] [VERSION=otherversion] `basename $0` <OPTION> package-name" - echo -e "\t OPTIONS: --update, --upgrade, --search, --get, --get-patches, --purge" + echo -e "\t OPTIONS: --update, --upgrade, --search, --get, --get-patches, --purge, --remove" exit 1 } @@ -507,6 +507,7 @@ function simplaret_get_jail_patches { VERSION="`default_version`" ARCH="`default_arch`" + # TODO: remove it, forcing user to always do a simplaret --update? simplaret_update # in case there's something wrong with the jail, abort @@ -666,13 +667,14 @@ elif [ "$ARCH" == "sparc" ]; then fi case $1 in - --update) simplaret_update ;; - --search) simplaret_search $2 ;; - --get) simplaret_get $2 ;; - --get-patches) simplaret_get_patches ;; - --purge) shift ; simplaret_purge $* ;; - --install) simplaret_install $2 ;; - --upgrade) simplaret_get_patches ; jail-upgrade ;; + "--update" | "update") simplaret_update ;; + "--search" | "search") simplaret_search $2 ;; + "--get" | "get") simplaret_get $2 ;; + "--get-patches" | "get-patches") simplaret_get_patches ;; + "--purge" | "purge") shift ; simplaret_purge $* ;; + "--install" | "install") simplaret_install $2 ;; + "--upgrade" | "upgrade") simplaret_get_patches ; jail-upgrade ;; + "--remove" | "remove") removepkg $2 ;; *) simplaret_usage ;; esac |