You need to sign in or sign up before continuing.
Commit 36b66a11 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add Install command (update packages repo info and install package)

parent 1262b993
...@@ -145,6 +145,9 @@ check_command() ...@@ -145,6 +145,9 @@ check_command()
reinstall) # HELPCMD: reinstall package(s) from remote repositories or from local file reinstall) # HELPCMD: reinstall package(s) from remote repositories or from local file
epm_cmd=reinstall epm_cmd=reinstall
;; ;;
Install) # HELPCMD: perform update package repo info and install package(s) via install command
epm_cmd=Install
;;
-q|installed) # HELPCMD: check presence of package(s) -q|installed) # HELPCMD: check presence of package(s)
epm_cmd=query epm_cmd=query
;; ;;
......
#!/bin/sh
#
# Copyright (C) 2013 Etersoft
# Copyright (C) 2013 Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
load_helper epm-update
load_helper epm-install
epm_Install()
{
case $PMTYPE in
yum-rpm)
;;
*)
epm_update || return
;;
esac
epm_install
}
...@@ -30,5 +30,5 @@ epm_Upgrade() ...@@ -30,5 +30,5 @@ epm_Upgrade()
;; ;;
esac esac
epm_upgrade $pkg_filenames epm_upgrade
} }
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