From 37dbe0a32fdfbea6688000733d3d2b7b042bb098 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 28 Jun 2017 08:54:19 +0000 Subject: [PATCH] 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 --- scripts/pkg-manager.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/pkg-manager.sh b/scripts/pkg-manager.sh index 3bf07350..e3d58c0a 100644 --- a/scripts/pkg-manager.sh +++ b/scripts/pkg-manager.sh @@ -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 ] && {