pkg-manager.sh: Circumvent more checks for install -y

zypper --non-interactive --gpg-auto-import-keys in --force-resolution --auto-agree-with-licenses

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-06-28 08:54:19 +00:00
commit 37dbe0a32f

View file

@ -47,8 +47,11 @@ cmd_install()
case $ID in
opensuse|suse)
[ "$non_interactive" = 1 ] && global_opts="$global_opts --non-interactive"
eval run sudo $env zypper $global_opts install "$@"
[ "$non_interactive" = 1 ] && {
opts="--force-resolution --auto-agree-with-licenses"
global_opts="$global_opts --non-interactive --gpg-auto-import-keys --no-gpg-checks"
}
eval run sudo $env zypper $global_opts install $opts "$@"
;;
debian)
[ "$non_interactive" = 1 ] && {