Revert "metadata: Set tilde separator for rust2rpm.Metadata.version"

This is not full fix, unfortunately since it breaks cargo-inspect. Paths
on the file system are still with `-`.

This reverts commit cfd3150663.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-12-13 21:17:26 +01:00
parent cfd3150663
commit c61d9d6879
No known key found for this signature in database
GPG key ID: 695714BD1BBC5F4C

View file

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