mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Update package_linter.py
This commit is contained in:
parent
360da39e15
commit
403fff1e7c
1 changed files with 1 additions and 1 deletions
|
@ -992,7 +992,7 @@ class Manifest(TestSuite):
|
||||||
@test()
|
@test()
|
||||||
def version_format(self):
|
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(
|
yield Error(
|
||||||
"The 'version' field should match the format <upstreamversion>~ynh<packageversion>. "
|
"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 "
|
"For example: 4.3-2~ynh3. It is composed of the upstream version number (in the "
|
||||||
|
|
Loading…
Reference in a new issue