From eb301456cd090d8c8b4363a2cf8bdd14f68bbcf5 Mon Sep 17 00:00:00 2001 From: Augustin Trancart Date: Sun, 3 May 2020 23:11:38 +0200 Subject: [PATCH] Allow --time=10,100,1000... --- package_linter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package_linter.py b/package_linter.py index a68d4f9..251c910 100755 --- a/package_linter.py +++ b/package_linter.py @@ -877,8 +877,8 @@ class Script(): # Usage of ynh_script_prorgression with --time or --weight=1 all over the place... if self.containsregex(r"ynh_script_progression.*--time"): print_warning("Using ynh_script_progression --time should only be for calibrating the weight (c.f. --weight). It's not meant to be kept for production versions.") - if self.containsregex(r"ynh_script_progression.*--weight=1") and \ - not self.containsregex(r"ynh_script_progression.*--weight=([^1]|[1-9]{2})"): + if self.containsregex(r"ynh_script_progression.*--weight=1") \ + and not self.containsregex(r"ynh_script_progression.*--weight=([^1]|[1-9][0-9]+)"): print_warning("Having only '--weight=1' for ynh_script_progression is useless... Either calibrate the weights with --time once, or don't put any --weight at all.")