metadata: Set tilde separator for rust2rpm.Metadata.version

Otherwise we can't really package pre-release versions anymore :/

Fixes: https://pagure.io/fedora-rust/rust2rpm/issue/101
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-12-13 21:09:58 +01:00
parent c5e398bca6
commit cfd3150663
No known key found for this signature in database
GPG key ID: 695714BD1BBC5F4C

View file

@ -222,7 +222,8 @@ class Metadata:
self._version = version self._version = version
version_normalized = CargoSemVer.unparse_version( version_normalized = CargoSemVer.unparse_version(
CargoSemVer.coerce( CargoSemVer.coerce(
CargoSemVer.parse_version(self._version))) CargoSemVer.parse_version(self._version)),
sep="~")
self.version = version_normalized self.version = version_normalized
self.license = None self.license = None
self.license_file = None self.license_file = None