Skip to content

Commit 14318e4

Browse files
committed
make-dist: replace all '-' for '.' for rpm release
Otherwise, a version like 'vX.Y.Z-foo-bar-baz' would end up as an rpm release of 'foo.bar-baz' in the spec file, and rpm will not like that very much because of that extra '-'. Signed-off-by: Joao Eduardo Luis <[email protected]>
1 parent e2b4fe6 commit 14318e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make-dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ version=$1
2323
[ -z "$version" ] && version=$(git describe --long --match 'v*' | sed 's/^v//')
2424
if expr index $version '-' > /dev/null; then
2525
rpm_version=$(echo $version | cut -d - -f 1-1)
26-
rpm_release=$(echo $version | cut -d - -f 2- | sed 's/-/./')
26+
rpm_release=$(echo $version | cut -d - -f 2- | sed 's/-/./g')
2727
else
2828
rpm_version=$version
2929
rpm_release=0

0 commit comments

Comments
 (0)