From 10a7cadcfd4992e3c5b91ec27c9eceec7de2ea85 Mon Sep 17 00:00:00 2001 From: Moul Date: Wed, 25 May 2016 23:01:16 +0200 Subject: [PATCH] [enh] do not check the file and consider the file is not here when the file is empty. --- package_linter.py | 2 +- phpsysinfo_for_yunohost | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 160000 phpsysinfo_for_yunohost diff --git a/package_linter.py b/package_linter.py index 6cb6052..a35c3cd 100755 --- a/package_linter.py +++ b/package_linter.py @@ -40,7 +40,7 @@ def check_files_exist(app_path): i+=1 def check_file_exist(file_path): - return 1 if os.path.isfile(file_path) else 0 + return 1 if os.path.isfile(file_path) and os.stat(file_path).st_size > 0 else 0 def read_file(file_path): with open(file_path) as f: diff --git a/phpsysinfo_for_yunohost b/phpsysinfo_for_yunohost new file mode 160000 index 0000000..b93a9b9 --- /dev/null +++ b/phpsysinfo_for_yunohost @@ -0,0 +1 @@ +Subproject commit b93a9b9617ff21d23e91eb95cc2de7ed266c4fc1