mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Merge pull request #109 from selfhoster1312/progress_common
Warn when using ynh_script_progression in _common.sh
This commit is contained in:
commit
d8162daf30
1 changed files with 7 additions and 0 deletions
|
@ -2661,6 +2661,13 @@ class Script(TestSuite):
|
|||
'In the context of backup and restore scripts, you should load _common.sh with "source ../settings/scripts/_common.sh"'
|
||||
)
|
||||
|
||||
@test(only=["_common.sh"])
|
||||
def no_progress_in_common(self):
|
||||
if self.contains("ynh_script_progression"):
|
||||
yield Info(
|
||||
"You should not use `ynh_script_progression` in _common.sh because it will produce warnings when trying to install the application."
|
||||
)
|
||||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) < 2:
|
||||
|
|
Loading…
Reference in a new issue