mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Misc message tweaks
This commit is contained in:
parent
ef8256372f
commit
a682a34454
1 changed files with 7 additions and 7 deletions
|
@ -1326,8 +1326,8 @@ class Script(TestSuite):
|
||||||
def sudo(self):
|
def sudo(self):
|
||||||
if self.containsregex(r"sudo \w"): # \w is here to not match sudo -u, legit use because ynh_exec_as not official yet...
|
if self.containsregex(r"sudo \w"): # \w is here to not match sudo -u, legit use because ynh_exec_as not official yet...
|
||||||
yield Info(
|
yield Info(
|
||||||
"You should not need to use 'sudo', the self is being run as root. "
|
"You should not need to use 'sudo', the script is being run as root. "
|
||||||
"(If you need to run a command using a specific user, use 'ynh_exec_as')"
|
"(If you need to run a command using a specific user, use 'ynh_exec_as' (or 'sudo -u'))"
|
||||||
)
|
)
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
|
@ -1346,11 +1346,11 @@ class Script(TestSuite):
|
||||||
|
|
||||||
@test(only=["install"])
|
@test(only=["install"])
|
||||||
def progression(self):
|
def progression(self):
|
||||||
if not self.contains("ynh_print_info") and not self.contains("ynh_script_progression"):
|
if not self.contains("ynh_script_progression"):
|
||||||
yield Warning(
|
yield Warning(
|
||||||
"Please add a few messages for the user, to explain what is going on "
|
"Please add a few messages for the user using 'ynh_script_progression' "
|
||||||
"(in friendly, not-too-technical terms) during the installation. "
|
"to explain what is going on (in friendly, not-too-technical terms) "
|
||||||
"You can use 'ynh_print_info' or 'ynh_script_progression' for this."
|
"during the installation. (and ideally in scripts remove, upgrade and restore too)"
|
||||||
)
|
)
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
|
|
Loading…
Reference in a new issue