From 7e3f2c2f5099490e1b38ce97ce161ae8ae79c9e8 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Thu, 23 Jul 2020 22:40:17 +0200 Subject: [PATCH] Use tilde instead of dash for dev versions RPM doesn't support dash in version numbers. From http://ftp.rpm.org/max-rpm/ch-rpm-file-format.html: 'The only restriction placed on the version is that it cannot contain a dash "-".' See also https://github.com/semver/semver/issues/145. --- gen_version.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gen_version.py b/gen_version.py index eeac723d6..1c307210d 100644 --- a/gen_version.py +++ b/gen_version.py @@ -1,24 +1,24 @@ # Generate version # # Stable release entry format : ..>patch> -# Development release entry format: ..-dev +# Development release entry format: ..~dev # # Stable release output format : .. -# Development release output format: ..-dev. +# Development release output format: ..~dev. # The patch version of a development release should be the next stable -# release patch number followed by "-dev". The committer date will be +# release patch number followed by "~dev". The committer date will be # added with a period separator. # # Example sequence: # # Entry Output # 2.44.1 => 2.44.1 -# 2.44.2-dev => 2.44.2-dev.20200704.1652 +# 2.44.2~dev => 2.44.2~dev.20200704.1652 # 2.44.2 => 2.44.2 -# 2.44.3-dev => 2.44.3-dev.20200824.1337 +# 2.44.3~dev => 2.44.3~dev.20200824.1337 -version = '2.44.2-dev' +version = '2.44.2~dev' import os import sys -- 2.40.0