Fix build problem by freezing copr commits
[ovsnfv.git] / build / build_ovs_rpm.sh
index 198d43b..de46177 100755 (executable)
@@ -124,6 +124,8 @@ if [ ! -z $DPDK ]; then
     echo "Clone Fedora copr repo and copy files."
     echo
     git clone http://copr-dist-git.fedorainfracloud.org/cgit/pmatilai/dpdk-snapshot/openvswitch.git
+    cd openvswitch
+    git checkout $COPR_OVS_VERSION
     cp $TMPDIR/openvswitch/openvswitch.spec $RPMDIR/SPECS
     cp $TMPDIR/openvswitch/* $RPMDIR/SOURCES
     snapgit=`grep "define snapver" $TMPDIR/openvswitch/openvswitch.spec | cut -c26-33`