From d3403a701e0f29d18785b46f34893df092064910 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 13 May 2021 19:49:16 +0200 Subject: [PATCH] Fix doc folder exists test --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 83dec9e..6a11883 100755 --- a/package_linter.py +++ b/package_linter.py @@ -449,7 +449,7 @@ class App(TestSuite): @test() def doc_dir(app): - if not file_exists(app.path + "/doc"): + if not os.path.exists(app.path + "/doc"): yield Info("""READMEs are to be automatically generated using https://github.com/YunoHost/apps/tree/master/tools/README-generator. - You are encouraged to create a doc/DISCLAIMER.md file, which should contain any important information to be presented to the admin before installation. Check https://github.com/YunoHost/example_ynh/blob/master/doc/DISCLAIMER.md for more details (it should be somewhat equivalent to the old 'Known limitations' and 'Specific features' section). (It's not mandatory to create this file if you're absolutely sure there's no relevant info to show to the user) - If relevant for this apps, screenshots can be added in a doc/screenshots/ folder.""")