mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Allow --time=10,100,1000...
This commit is contained in:
parent
e4f85ae967
commit
eb301456cd
1 changed files with 2 additions and 2 deletions
|
@ -877,8 +877,8 @@ class Script():
|
||||||
# Usage of ynh_script_prorgression with --time or --weight=1 all over the place...
|
# Usage of ynh_script_prorgression with --time or --weight=1 all over the place...
|
||||||
if self.containsregex(r"ynh_script_progression.*--time"):
|
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.")
|
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 \
|
if self.containsregex(r"ynh_script_progression.*--weight=1") \
|
||||||
not self.containsregex(r"ynh_script_progression.*--weight=([^1]|[1-9]{2})"):
|
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.")
|
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.")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue