Verify whether the file exists before including it in zip

This commit is contained in:
Cheng Zhao 2015-04-01 10:23:17 +08:00
parent 2612e8fe8e
commit 953060e17c

View file

@ -191,7 +191,7 @@ def create_dist_zip():
with scoped_cwd(DIST_DIR):
files = TARGET_BINARIES[TARGET_PLATFORM] + ['LICENSE', 'version']
if TARGET_PLATFORM == 'linux':
files += SYSTEM_LIBRARIES
files += [lib for lib in SYSTEM_LIBRARIES if os.path.exists(lib)]
dirs = TARGET_DIRECTORIES[TARGET_PLATFORM]
make_zip(zip_file, files, dirs)