]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake.sh: refactor code to set PYBUILD
authorKefu Chai <kchai@redhat.com>
Mon, 7 Jun 2021 09:49:24 +0000 (17:49 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 7 Jun 2021 09:53:09 +0000 (17:53 +0800)
so it is more consistent with rhel/centos part.

Signed-off-by: Kefu Chai <kchai@redhat.com>
do_cmake.sh

index c85799aec277c4213ec4fb508f6b5219de2edd3d..25b8efd3959262e0b8264ecf4a5bb45764578928 100755 (executable)
@@ -19,11 +19,12 @@ if [ -r /etc/os-release ]; then
   source /etc/os-release
   case "$ID" in
       fedora)
-          PYBUILD="3.7"
-          if [ "$VERSION_ID" -eq "32" ] ; then
-              PYBUILD="3.8"
-          elif [ "$VERSION_ID" -ge "33" ] ; then
-              PYBUILD="3.9"
+          if [ "$VERSION_ID" -ge "33" ] ; then
+            PYBUILD="3.9"
+          elif [ "$VERSION_ID" -ge "32" ] ; then
+            PYBUILD="3.8"
+          else
+            PYBUILD="3.7"
           fi
           ;;
       rhel|centos)