add support to query repo versions prior to 1.3
@@ -26,8 +26,15 @@ skip=""
baseos=""
arch=""
+echo $version | egrep -q "^1.2|1.1"
+if [ $? -eq 0 ];then
+ pwd | grep -q sles12 && baseos="SLE_12_SP1"
+ pwd | grep -q centos7 && baseos="CentOS_7.2"
+else
pwd | grep -q sles12 && baseos="SLE_12"
pwd | grep -q centos7 && baseos="CentOS_7"
+fi
+
pwd | grep -q aarch64 && arch="aarch64"
pwd | grep -q x86_64 && arch="x86_64"
