mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report useless ynh_webpath_available
This commit is contained in:
parent
1ef85021d4
commit
6f71827858
1 changed files with 2 additions and 0 deletions
|
@ -1455,6 +1455,8 @@ class Script(TestSuite):
|
||||||
)
|
)
|
||||||
if self.contains("--others_var"):
|
if self.contains("--others_var"):
|
||||||
yield Warning("Option --others_var is deprecated / irrelevant since 4.2, and will be removed in Bullseye. Yunohost now manages conf using ynh_add_config which automatically replace all __FOOBAR__ by $foobar")
|
yield Warning("Option --others_var is deprecated / irrelevant since 4.2, and will be removed in Bullseye. Yunohost now manages conf using ynh_add_config which automatically replace all __FOOBAR__ by $foobar")
|
||||||
|
if self.contains("ynh_webpath_available"):
|
||||||
|
yield Info("Calling 'ynh_webpath_available' is quite probably pointless: in the install script, just call ynh_webpath_register, and in the restore script, there's no need to check/register the webpath. (Also the helper always return exit code 0, so 'ynh_webpath_available || ynh_die' is useless :/")
|
||||||
|
|
||||||
@test(only=["install", "upgrade"])
|
@test(only=["install", "upgrade"])
|
||||||
def deprecated_replace_string(self):
|
def deprecated_replace_string(self):
|
||||||
|
|
Loading…
Reference in a new issue