epm-Install 1.18 KB
Newer Older
1 2
#!/bin/sh
#
3 4
# Copyright (C) 2013, 2019  Etersoft
# Copyright (C) 2013, 2019  Vitaly Lipatov <lav@etersoft.ru>
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#
# 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()
{
25 26 27 28
    # copied from epm_install
    local names="$(echo $pkg_names | filter_out_installed_packages)"
    local files="$(echo $pkg_files | filter_out_installed_packages)"

Vitaly Lipatov's avatar
Vitaly Lipatov committed
29
    [ -z "$files$names" ] && info "Install: Skip empty install list." && return 22
30

31
    epm_update || { [ -n "$force" ] || return ; }
32

33 34
    epm_install_names $names || return

35
    epm_install_files $files
36
}