3
# Copyright (C) 2012-2020 Etersoft
4
# Copyright (C) 2012-2020 Vitaly Lipatov <lav@etersoft.ru>
6
# This program is free software: you can redistribute it and/or modify
7
# it under the terms of the GNU Affero General Public License as published by
8
# the Free Software Foundation, either version 3 of the License, or
9
# (at your option) any later version.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU Affero General Public License for more details.
16
# You should have received a copy of the GNU Affero General Public License
17
# along with this program. If not, see <http://www.gnu.org/licenses/>.
20
epm_install_files_rpm()
23
[ -z "$files" ] && return
25
if __epm_repack_if_needed $files ; then
26
[ -n "$repacked_pkgs" ] || fatal "Can't convert $files"
27
files="$repacked_pkgs"
30
if [ -n "$save_only" ] ; then
32
cp -v $files "$EPMCURDIR"
36
if [ -n "$put_to_repo" ] ; then
37
load_helper epm-repopkg
38
epm_put_to_repo $files
43
__epm_check_if_src_rpm $files
45
# --replacepkgs: Install the Package Even If Already Installed
46
local replacepkgs="$(__epm_get_replacepkgs $files)"
47
sudocmd rpm -Uvh $replacepkgs $(subst_option dryrun --test) $force $noscripts $nodeps $files && return
50
__epm_check_if_rpm_already_installed $force $replacepkgs $noscripts $nodeps $files && return
52
# if run with --nodeps, do not fallback on hi level
53
[ -n "$nodeps" ] && return $RES
55
# fallback to install names
57
# separate second output
62
YUMOPTIONS=--nogpgcheck
66
ZYPPEROPTIONS=$(__use_zypper_no_gpg_checks)
70
URPMOPTIONS=--no-verify-rpm
78
epm_install_names $files