From: Alexander Traud Date: Fri, 19 Jan 2018 10:46:21 +0000 (+0100) Subject: install_prereq: Support package manager DNF and yum option strict=1. X-Git-Tag: 13.20.0-rc1~67^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fbca9a40d289c59716cc6358f3fe215276e7e3a;p=thirdparty%2Fasterisk.git install_prereq: Support package manager DNF and yum option strict=1. This re-enables the script ./contrib/scripts/install_prereq on Fedora 22 and newer, and on RHEL/CentOS when the option strict=1 was set for yum install. ASTERISK-27598 Reported by: Hunter Stevens, Said Masoud Change-Id: I40f9517122aaa6906e8fc0962b4b8008dfddb368 --- diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq index 67a6e2b492..c9dc3763b1 100755 --- a/contrib/scripts/install_prereq +++ b/contrib/scripts/install_prereq @@ -124,7 +124,7 @@ handle_debian() { handle_rh() { extra_packs=`check_installed_rpms $PACKAGES_RH` if [ x"$extra_packs" != "x" ] ; then - $testcmd yum install -y $extra_packs + $testcmd yum install --skip-broken --assumeyes $extra_packs fi }