mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-21 20:51:26 +00:00
do not upload empty file
This commit is contained in:
parent
b1b4ee4e38
commit
cb9165a243
@ -147,6 +147,8 @@ class Import:
|
|||||||
for file in os.scandir(f'{local_repo_path}/SOURCES'):
|
for file in os.scandir(f'{local_repo_path}/SOURCES'):
|
||||||
full_path = f'{local_repo_path}/SOURCES/{file.name}'
|
full_path = f'{local_repo_path}/SOURCES/{file.name}'
|
||||||
magic = fileutil.get_magic_file(full_path)
|
magic = fileutil.get_magic_file(full_path)
|
||||||
|
if magic.name == 'empty':
|
||||||
|
continue
|
||||||
if magic.encoding == 'binary':
|
if magic.encoding == 'binary':
|
||||||
source_dict[f'SOURCES/{file.name}'] = fileutil.get_checksum(full_path)
|
source_dict[f'SOURCES/{file.name}'] = fileutil.get_checksum(full_path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user