From: Jason Dillaman Date: Thu, 22 Aug 2019 12:47:04 +0000 (-0400) Subject: ceph-iscsi-stable: fix revision to '-1' if building at tag X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ae866e0d7b478c12ed88e93bbcd8fb5f7145e5dd;p=ceph-build.git ceph-iscsi-stable: fix revision to '-1' if building at tag Signed-off-by: Jason Dillaman --- diff --git a/ceph-iscsi-stable/build/build_rpm b/ceph-iscsi-stable/build/build_rpm index ad2e946da..6e2a46c3c 100644 --- a/ceph-iscsi-stable/build/build_rpm +++ b/ceph-iscsi-stable/build/build_rpm @@ -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 \