From: Thierry Parmentelat Date: Mon, 11 Jan 2010 10:55:09 +0000 (+0000) Subject: getrelease.sh and %distrorelease now only hold the major number as an integer - allow... X-Git-Tag: 4.3-rc16~22 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6ee9b881647a9f8f4914b5c40ab54d7df6ef5fff;p=build.git getrelease.sh and %distrorelease now only hold the major number as an integer - allows for comparisons even on centos5 --- diff --git a/build.common b/build.common index 919106b6..3d227982 100644 --- a/build.common +++ b/build.common @@ -34,7 +34,8 @@ function pl_getRelease() { echo "build.common.pl_getRelease-unknown" exit 1 fi - echo "$release" + # keep only the major number + echo "$release" | cut -d. -f1 return 0 }