]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
tcmu-runner: convert all dashes to period in revision 857/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 1 Sep 2017 14:00:23 +0000 (10:00 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 1 Sep 2017 14:00:23 +0000 (10:00 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
tcmu-runner/build/build_rpm

index 38b8712f5be10df5b410562bfef8b75e5e188568..b3b9def51bdd2f5233c7e961ad3a553c9c125a05 100644 (file)
@@ -80,7 +80,7 @@ gzip ${DESTDIR}/usr/share/man/man8/tcmu-runner.8
 # Get version
 RELEASE="$(lsb_release --short -r | cut -d '.' -f 1)" # system release
 VERSION="$(git describe --abbrev=0 --tags HEAD | cut -d - -f 1)"
-REVISION="$(git describe --tags HEAD | cut -d - -f 2- | sed 's/-/./' | sed 's/^rc/0./')"
+REVISION="$(git describe --tags HEAD | cut -d - -f 2- | sed 's/-/./g' | sed 's/^rc/0./')"
 
 ## Create the package
 # Make sure there are no other packages, first