mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Rename function.
This commit is contained in:
parent
9f4fa2ef7e
commit
79b4e2a30a
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ def check_manifest(manifest):
|
||||||
j+=1
|
j+=1
|
||||||
i+=1
|
i+=1
|
||||||
|
|
||||||
def check_scripts(path, script_name):
|
def check_script(path, script_name):
|
||||||
script_path = path + "/scripts/" + script_name
|
script_path = path + "/scripts/" + script_name
|
||||||
if check_file_exist(script_path) == 0: return
|
if check_file_exist(script_path) == 0: return
|
||||||
print (c.BOLD + c.HEADER + "\n>>>>", scripts[i].upper(), "SCRIPT <<<<" + c.END);
|
print (c.BOLD + c.HEADER + "\n>>>>", scripts[i].upper(), "SCRIPT <<<<" + c.END);
|
||||||
|
@ -162,7 +162,7 @@ if __name__ == '__main__':
|
||||||
check_manifest(app_path + "/manifest.json")
|
check_manifest(app_path + "/manifest.json")
|
||||||
i, scripts = 0, ("install", "remove", "upgrade", "backup", "restore")
|
i, scripts = 0, ("install", "remove", "upgrade", "backup", "restore")
|
||||||
while i < len(scripts):
|
while i < len(scripts):
|
||||||
check_scripts(app_path, scripts[i])
|
check_script(app_path, scripts[i])
|
||||||
i+=1
|
i+=1
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue