summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorartgromov <[email protected]>2023-12-05 17:30:53 +0300
committerartgromov <[email protected]>2023-12-05 19:01:56 +0300
commit61bb790fc933a34b5d91ffebd096743f84c7d1c1 (patch)
tree9170e06053399db0a836c6aa9643c06ec9a2c1ed
parentc17205b03a2c3c8c0d9e256d16cf0919c3a47e0d (diff)
add condition: copy if lib file exists locally
-rw-r--r--ydb/tools/ydbd_slice/handlers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ydb/tools/ydbd_slice/handlers.py b/ydb/tools/ydbd_slice/handlers.py
index befd86ad4da..66a1e491950 100644
--- a/ydb/tools/ydbd_slice/handlers.py
+++ b/ydb/tools/ydbd_slice/handlers.py
@@ -360,8 +360,9 @@ def update_kikimr(nodes, bin_path, compressed_path):
nodes.copy(bin_path, slice_kikimr_path, compressed_path=compressed_path)
for lib in ['libiconv.so', 'liblibaio-dynamic.so', 'liblibidn-dynamic.so']:
lib_path = os.path.join(bin_directory, lib)
- remote_lib_path = os.path.join('/lib', lib)
- nodes.copy(lib_path, remote_lib_path)
+ if os.path.exists(lib_path):
+ remote_lib_path = os.path.join('/lib', lib)
+ nodes.copy(lib_path, remote_lib_path)
def update_cfg(nodes, cfg_path):