mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Path may contain spaces >_>
This commit is contained in:
parent
eb774ae2fc
commit
f6b9acc401
1 changed files with 7 additions and 7 deletions
|
@ -474,10 +474,10 @@ class App(TestSuite):
|
||||||
if not file_exists(check_process_file):
|
if not file_exists(check_process_file):
|
||||||
return
|
return
|
||||||
|
|
||||||
if os.system("grep -q 'Level 5=1' %s" % check_process_file) == 0:
|
if os.system("grep -q 'Level 5=1' '%s'" % check_process_file) == 0:
|
||||||
yield Error("Do not force Level 5=1 in check_process...")
|
yield Error("Do not force Level 5=1 in check_process...")
|
||||||
|
|
||||||
if os.system("grep -q ' *Level [^5]=' %s" % check_process_file) == 0:
|
if os.system("grep -q ' *Level [^5]=' '%s'" % check_process_file) == 0:
|
||||||
yield Warning("Setting Level x=y in check_process is obsolete / not relevant anymore")
|
yield Warning("Setting Level x=y in check_process is obsolete / not relevant anymore")
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
|
@ -489,23 +489,23 @@ class App(TestSuite):
|
||||||
|
|
||||||
has_is_public_arg = any(a["name"] == "is_public" for a in app.manifest["arguments"].get("install", []))
|
has_is_public_arg = any(a["name"] == "is_public" for a in app.manifest["arguments"].get("install", []))
|
||||||
if has_is_public_arg:
|
if has_is_public_arg:
|
||||||
if os.system(r"grep -q '^\s*setup_public=1' %s" % check_process_file) != 0:
|
if os.system(r"grep -q '^\s*setup_public=1' '%s'" % check_process_file) != 0:
|
||||||
yield Warning("It looks like you forgot to enable setup_public test in check_process ?")
|
yield Warning("It looks like you forgot to enable setup_public test in check_process ?")
|
||||||
|
|
||||||
if os.system(r"grep -q '^\s*setup_private=1' %s" % check_process_file) != 0:
|
if os.system(r"grep -q '^\s*setup_private=1' '%s'" % check_process_file) != 0:
|
||||||
yield Warning("It looks like you forgot to enable setup_private test in check_process ?")
|
yield Warning("It looks like you forgot to enable setup_private test in check_process ?")
|
||||||
|
|
||||||
has_path_arg = any(a["name"] == "path" for a in app.manifest["arguments"].get("install", []))
|
has_path_arg = any(a["name"] == "path" for a in app.manifest["arguments"].get("install", []))
|
||||||
if has_path_arg:
|
if has_path_arg:
|
||||||
if os.system(r"grep -q '^\s*setup_sub_dir=1' %s" % check_process_file) != 0:
|
if os.system(r"grep -q '^\s*setup_sub_dir=1' '%s'" % check_process_file) != 0:
|
||||||
yield Warning("It looks like you forgot to enable setup_sub_dir test in check_process ?")
|
yield Warning("It looks like you forgot to enable setup_sub_dir test in check_process ?")
|
||||||
|
|
||||||
if app.manifest.get("multi_instance") in [True, 1, "True", "true"]:
|
if app.manifest.get("multi_instance") in [True, 1, "True", "true"]:
|
||||||
if os.system(r"grep -q '^\s*multi_instance=1' %s" % check_process_file) != 0:
|
if os.system(r"grep -q '^\s*multi_instance=1' '%s'" % check_process_file) != 0:
|
||||||
yield Warning("It looks like you forgot to enable multi_instance test in check_process ?")
|
yield Warning("It looks like you forgot to enable multi_instance test in check_process ?")
|
||||||
|
|
||||||
if app.scripts["backup"].exists:
|
if app.scripts["backup"].exists:
|
||||||
if os.system(r"grep -q '^\s*backup_restore=1' %s" % check_process_file) != 0:
|
if os.system(r"grep -q '^\s*backup_restore=1' '%s'" % check_process_file) != 0:
|
||||||
yield Warning("It looks like you forgot to enable backup_restore test in check_process ?")
|
yield Warning("It looks like you forgot to enable backup_restore test in check_process ?")
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
|
|
Loading…
Reference in a new issue