From 953060e17c813c90a0fe244fb8815f9c610857d0 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 1 Apr 2015 10:23:17 +0800 Subject: [PATCH] Verify whether the file exists before including it in zip --- script/create-dist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/create-dist.py b/script/create-dist.py index 6e1c6c45..a873197c 100755 --- a/script/create-dist.py +++ b/script/create-dist.py @@ -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) -- 2.43.0