[Asterisk-code-review] install prereq: Support package manager DNF and yum option s... (asterisk[15])

Jenkins2 asteriskteam at digium.com
Wed Jan 24 07:51:48 CST 2018


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/8013 )

Change subject: install_prereq: Support package manager DNF and yum option strict=1.
......................................................................

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
---
M contrib/scripts/install_prereq
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  George Joseph: Looks good to me, but someone else must approve
  Benjamin Keith Ford: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved
  Jenkins2: Approved for Submit



diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq
index e3b217c..6b1c413 100755
--- a/contrib/scripts/install_prereq
+++ b/contrib/scripts/install_prereq
@@ -125,7 +125,7 @@
 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
 }
 

-- 
To view, visit https://gerrit.asterisk.org/8013
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: I40f9517122aaa6906e8fc0962b4b8008dfddb368
Gerrit-Change-Number: 8013
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180124/a72d244c/attachment.html>


More information about the asterisk-code-review mailing list