Commit e786a493 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: speedup --description, --product-alternatives

parent 4dd0e63a
...@@ -46,10 +46,6 @@ is_command() ...@@ -46,10 +46,6 @@ is_command()
} }
. $(dirname $0)/common-outformat.sh
check_tty
#__showcmd_shifted() #__showcmd_shifted()
#{ #{
# local s="$1" # local s="$1"
...@@ -217,6 +213,23 @@ is_repacked_package() ...@@ -217,6 +213,23 @@ is_repacked_package()
} }
case "$1" in
"--description")
is_supported_arch "$2" || exit 0
echo "$DESCRIPTION"
exit
;;
"--product-alternatives")
print_product_alt $PRODUCTALT
exit
;;
esac
. $(dirname $0)/common-outformat.sh
check_tty
# set PKGNAME to $BASEPKGNAME-$VERSION if $VERSION is found in PRODUCTALT # set PKGNAME to $BASEPKGNAME-$VERSION if $VERSION is found in PRODUCTALT
[ -n "$PRODUCTALT" ] && check_alternative_pkgname [ -n "$PRODUCTALT" ] && check_alternative_pkgname
...@@ -241,10 +254,6 @@ case "$1" in ...@@ -241,10 +254,6 @@ case "$1" in
echo "$PKGNAME" echo "$PKGNAME"
exit exit
;; ;;
"--product-alternatives")
print_product_alt $PRODUCTALT
exit
;;
"--installed") "--installed")
#epm installed $PKGNAME #epm installed $PKGNAME
is_repacked_package $PKGNAME is_repacked_package $PKGNAME
...@@ -254,11 +263,6 @@ case "$1" in ...@@ -254,11 +263,6 @@ case "$1" in
epm print version for package $PKGNAME epm print version for package $PKGNAME
exit exit
;; ;;
"--description")
is_supported_arch "$2" || exit 0
echo "$DESCRIPTION"
exit
;;
"--update") "--update")
if ! epm installed $PKGNAME ; then if ! epm installed $PKGNAME ; then
echo "Skipping update of $PKGNAME (package is not installed)" echo "Skipping update of $PKGNAME (package is not installed)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment