Fix for new location of OVS and DPDK COPR repos.
[ovsnfv.git] / build / build_ovs_rpm.sh
index de46177..b03f4ab 100755 (executable)
@@ -123,12 +123,12 @@ if [ ! -z $DPDK ]; then
     echo "----------------------------------"
     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 clone https://github.com/tfherbert/ovs-snap.git 
+    cd ovs-snap
     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`
+    cp $TMPDIR/ovs-snap/openvswitch.spec $RPMDIR/SPECS
+    cp $TMPDIR/ovs-snap/* $RPMDIR/SOURCES
+    snapgit=`grep "define snapver" $TMPDIR/ovs-snap/openvswitch.spec | cut -c26-33`
     echo "-------------------------------------------"
     echo "Remove old dpdk, ovs and dpdk development rpms"
     echo
@@ -161,7 +161,7 @@ if [ ! -z $DPDK ]; then
     prefix=openvswitch-${basever}
     archive=${prefix}-${snapser}.git${snapgit}.tar.gz
     git archive --prefix=${prefix}-${snapser}.git${snapgit}/ HEAD  | gzip -9 > $RPMDIR/SOURCES/${archive}
-    cd $TMPDIR/openvswitch
+    cd $TMPDIR/ovs-snap
     echo "--------------------------------------------"
     echo "Build openvswitch RPM"
     echo