mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Don't grep doc/ if folder doesn't exist, should prevent some issues
This commit is contained in:
parent
a3272065dd
commit
992f491e5e
1 changed files with 3 additions and 2 deletions
|
@ -455,8 +455,9 @@ class App(TestSuite):
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def disclaimer_wording(app):
|
def disclaimer_wording(app):
|
||||||
if os.system(r"grep -nr -q 'Any known limitations, constrains or stuff not working, such as\|Other infos that people should be' %s/doc/" % app.path) == 0:
|
if os.path.exists(app.path + "/doc"):
|
||||||
yield Info("In DISCLAIMER.md: 'Any known limitations [...] such as' and 'Other infos [...] such as' are supposed to be placeholder sentences meant to explain to packagers what is the expected content, but is not an appropriate wording for end users :/")
|
if os.system(r"grep -nr -q 'Any known limitations, constrains or stuff not working, such as\|Other infos that people should be' %s/doc/" % app.path) == 0:
|
||||||
|
yield Info("In DISCLAIMER.md: 'Any known limitations [...] such as' and 'Other infos [...] such as' are supposed to be placeholder sentences meant to explain to packagers what is the expected content, but is not an appropriate wording for end users :/")
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def change_url_script(app):
|
def change_url_script(app):
|
||||||
|
|
Loading…
Reference in a new issue