]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-iscsi-stable: fix revision to '-1' if building at tag 1372/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 22 Aug 2019 12:47:04 +0000 (08:47 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 22 Aug 2019 12:48:05 +0000 (08:48 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
ceph-iscsi-stable/build/build_rpm

index ad2e946da6bf319af77d67846c01781dbee7ec13..6e2a46c3cc0147b0775a69f44d721b698afc73c3 100644 (file)
@@ -20,6 +20,9 @@ for project in $(ls -h | grep -v dist); do
     REPO_MAJOR_VERSION=$MAJOR_VERSION
   fi
   REVISION="$(git describe --tags HEAD | cut -d - -f 2- | sed 's/-/./')"
+  if [ "$VERSION" = "$REVISION" ]; then
+    REVISION="1"
+  fi
 
   # Create dummy dist tar
   tar cf ../dist/${PROJECT}-${VERSION}.tar.gz \