Update package_linter.py

This commit is contained in:
ericgaspar 2021-01-09 14:46:53 +01:00
parent 360da39e15
commit 403fff1e7c
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -992,7 +992,7 @@ class Manifest(TestSuite):
@test()
def version_format(self):
if self.manifest.get("version", "")[-5:-1] != "~ynh":
if not re.match("^([0-9]|\.|-)+~ynh[0-9]+$", self.manifest.get("version", "")):
yield Error(
"The 'version' field should match the format <upstreamversion>~ynh<packageversion>. "
"For example: 4.3-2~ynh3. It is composed of the upstream version number (in the "