mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
[mod] call one time 'print()'.
This commit is contained in:
parent
664993985c
commit
b14023d2f3
1 changed files with 7 additions and 7 deletions
|
@ -18,10 +18,10 @@ class c:
|
||||||
|
|
||||||
def header(app_path):
|
def header(app_path):
|
||||||
print(c.UNDERLINE + c.HEADER + c.BOLD +
|
print(c.UNDERLINE + c.HEADER + c.BOLD +
|
||||||
"YUNOHOST APP PACKAGE LINTER\n" + c.END)
|
"YUNOHOST APP PACKAGE LINTER\n", c.END,
|
||||||
print("App packaging documentation: https://yunohost.org/#/packaging_apps")
|
"App packaging documentation: https://yunohost.org/#/packaging_apps\n",
|
||||||
print("App package example: https://github.com/YunoHost/example_ynh\n")
|
"App package example: https://github.com/YunoHost/example_ynh\n",
|
||||||
print("Checking " + c.BOLD + app_path + c.END + " package\n")
|
"Checking " + c.BOLD + app_path + c.END + " package\n")
|
||||||
|
|
||||||
|
|
||||||
def print_right(str):
|
def print_right(str):
|
||||||
|
@ -203,9 +203,9 @@ def check_verifications_done_before_modifying_system(script):
|
||||||
|
|
||||||
if not ok:
|
if not ok:
|
||||||
print(c.FAIL + "✘ At line", ex + 1,
|
print(c.FAIL + "✘ At line", ex + 1,
|
||||||
"'ynh_die' or 'exit' command is executed with system modification before.")
|
"'ynh_die' or 'exit' command is executed with system modification before.\n",
|
||||||
print("This system modification is an issue if a verification exit the script.")
|
"This system modification is an issue if a verification exit the script.\n",
|
||||||
print("You should move this verification before any system modification." + c.END)
|
"You should move this verification before any system modification." + c.END)
|
||||||
else:
|
else:
|
||||||
print_right(
|
print_right(
|
||||||
"Verifications (with 'ynh_die' or 'exit' commands) are done before any system modification.")
|
"Verifications (with 'ynh_die' or 'exit' commands) are done before any system modification.")
|
||||||
|
|
Loading…
Reference in a new issue