mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
[enh] do not check the file and consider the file is not here when the file is empty.
This commit is contained in:
parent
e30f22b48c
commit
10a7cadcfd
2 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
1
phpsysinfo_for_yunohost
Submodule
1
phpsysinfo_for_yunohost
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit b93a9b9617ff21d23e91eb95cc2de7ed266c4fc1
|
Loading…
Reference in a new issue