Commit 20e26eb3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm update: run upgrade with used with args

parent e04ce67b
......@@ -320,9 +320,9 @@ check_command()
;;
# HELPCMD: PART: Repository control:
update|update-repo|ur) # HELPCMD: update remote package repository databases
update|update-repo|ur) # HELPCMD: update remote package repository databases (with args, run upgrade)
epm_cmd=update
direct_args=1
#direct_args=1
;;
addrepo|ar|--add-repo) # HELPCMD: add package repo (etersoft, autoimports, archive 2017/01/31); run with param to get list
epm_cmd=addrepo
......@@ -412,7 +412,7 @@ check_command()
Downgrade) # HELPCMD: force update package base, then run downgrade [all] packages to the repo state
epm_cmd=Downgrade
;;
downgrade) # HELPCMD: downgrade [all] packages to the repo state
downgrade|distro-sync) # HELPCMD: downgrade [all] packages to the repo state
epm_cmd=downgrade
;;
download|fetch|fc) # HELPCMD: download package(s) file to the current dir
......
......@@ -82,8 +82,6 @@ esac
__epm_update()
{
[ -z "$*" ] || fatal "No arguments are allowed for epm update command"
info "Running update the package index files from remote package repository database ..."
local ret=0
......@@ -198,6 +196,12 @@ epm_update()
return
fi
# update with args is the alias for upgrade
if [ -n "$*" ] ; then
epm upgrade "$@"
return
fi
__epm_update "$@" || return
__epm_touch_pkg
......
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