From e934a8140d63dcac5437f460694fd114eadf918c Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Tue, 30 May 2017 15:33:33 -0400 Subject: [PATCH] To reduce the hard code, add release as a variable so we know to change it --- ipmitool/bldipmi.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipmitool/bldipmi.pl b/ipmitool/bldipmi.pl index 4b5517d..510cac8 100755 --- a/ipmitool/bldipmi.pl +++ b/ipmitool/bldipmi.pl @@ -1,6 +1,7 @@ #! /usr/bin/perl my $version = "1.8.18"; +my $release = "0"; #check the distro $cmd = "cat /etc/*release"; @@ -95,7 +96,7 @@ if (! grep /libcrypto.so/, @output) { exit 1; } -my $objrpm = "$blddir/RPMS/$arch/ipmitool-xcat-$version-1.$arch.rpm"; +my $objrpm = "$blddir/RPMS/$arch/ipmitool-xcat-$version-$release.$arch.rpm"; my $dstdir = "/tmp/build/$os/$arch"; # check the build result