From 2cdbe79e7598ab7eff6db4dda8ac73a4c8358093 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 25 Apr 2020 06:01:59 +0200 Subject: [PATCH] Check for existence of 'version' key in manifest and that it does respect the format ~ynh --- package_linter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package_linter.py b/package_linter.py index ccf2ef9..f06206e 100755 --- a/package_linter.py +++ b/package_linter.py @@ -617,6 +617,9 @@ class App(): # YEP 1.10 Garder un historique de version propre + if not "version" in manifest or manifest["version"][-5:-1] != "~ynh": + print_warning("Please specify a 'version' field in the manifest. It should match the format ~ynh. For example : 4.3-2~ynh3. It is composed of the upstream version number (in the example, 4.3-2) and an incremental number for each change in the package without upstream change (in the example, 3). This incremental number can be reset to 1 each time the upstream version changes.") + # YEP 1.11 Cancelled # YEP 2.1