Install OpenVSwitch 2.6.1 into '/opt/ovs'
[releng/builder.git] / jjb / packaging / build-rpm-snap.sh
index cffc29bdbbb79b39716f2ada594d6d5fd570cc09..86f126ccae1789be30757d79d1bfff83deabecb6 100644 (file)
@@ -15,12 +15,21 @@ $PYTHON -m pip install --upgrade pip
 $PYTHON -m pip install -r "$WORKSPACE/packaging/packages/requirements.txt"
 
 # Convert stream to numeric ODL major version
-if [ "$STREAM" == "oxygen" ]; then
-  VERSION_MAJOR=8
-elif [ "$STREAM" == "fluorine" ]; then
+if [ "$STREAM" == "fluorine" ]; then
   VERSION_MAJOR=9
+elif [ "$STREAM" == "neon" ]; then
+  VERSION_MAJOR=10
+elif [ "$STREAM" == "sodium" ]; then
+  VERSION_MAJOR=11
+elif [ "$STREAM" == "magnesium" ]; then
+  VERSION_MAJOR=12
+elif [ "$STREAM" == "aluminium" ]; then
+  VERSION_MAJOR=13
+elif [ "$STREAM" == "silicon" ]; then
+  VERSION_MAJOR=14
 else
   echo "Unable to convert stream to major version"
+  echo "MAINTAINER: Update if/else switch above with recent stream/ver pairs"
   exit 1
 fi