summaryrefslogtreecommitdiffstats
path: root/build/test_ovs_rpm.sh
diff options
context:
space:
mode:
authorThomas F Herbert <therbert@redhat.com>2016-04-10 00:56:02 -0400
committerThomas F Herbert <therbert@redhat.com>2016-04-11 08:04:29 -0400
commitcbe1f7f40f5f60f9a8a0d2ed3c9ab3463f55bbc1 (patch)
treec753cd986a93407906dbb32ba45343cdf011db45 /build/test_ovs_rpm.sh
parent5181fb94a7485af207c1232753eeb74fb8975b1a (diff)
Fixes RPM build problem. Use correct copr repo. Fix some version number parsing
and tarball and rpm naming that was specific to old repo and old DPDK version. Now supports DPDK 16.04-rc4. Change-Id: Ia64b38d676e945df27917f4d9aa90ba4872c8cb5 Signed-off-by: Thomas F Herbert <therbert@redhat.com>
Diffstat (limited to 'build/test_ovs_rpm.sh')
-rwxr-xr-xbuild/test_ovs_rpm.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/build/test_ovs_rpm.sh b/build/test_ovs_rpm.sh
index 264cd6e..d0b9174 100755
--- a/build/test_ovs_rpm.sh
+++ b/build/test_ovs_rpm.sh
@@ -102,12 +102,15 @@ stopovs
cleanrpms
if [ ! -z $DPDK ]; then
+ if [ -z $DPDK_VERSION ]; then
+ DPDK_VERSION=16.04.0
+ fi
echo "-----------------------------------"
- echo "Install DPDK RPMs"
+ echo "Install DPDK RPMs for version $DPDK_VERSION"
echo
- sudo rpm -ivh $RPMDIR/RPMS/x86_64/dpdk-2*.rpm
- sudo rpm -ivh $RPMDIR/RPMS/x86_64/dpdk-tools-2*.rpm
- sudo rpm -ivh $RPMDIR/RPMS/x86_64/dpdk-examples-2*.rpm
+ sudo rpm -ivh $RPMDIR/RPMS/x86_64/dpdk-${DPDK_VERSION:0:1}*.rpm
+ sudo rpm -ivh $RPMDIR/RPMS/x86_64/dpdk-tools-${DPDK_VERSION:0:1}*.rpm
+ sudo rpm -ivh $RPMDIR/RPMS/x86_64/dpdk-examples-${DPDK_VERSION:0:1}*.rpm
fi
if [ ! -z $kmod ]; then