From 403fff1e7cd912714f209b86eeddb09170019378 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 9 Jan 2021 14:46:53 +0100 Subject: [PATCH] Update package_linter.py --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index e2ae6f7..9c202e1 100755 --- a/package_linter.py +++ b/package_linter.py @@ -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 ~ynh. " "For example: 4.3-2~ynh3. It is composed of the upstream version number (in the "