aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/fetch_from.py
diff options
context:
space:
mode:
authordskor <dskor@yandex-team.com>2023-03-24 11:39:32 +0300
committerdskor <dskor@yandex-team.com>2023-03-24 11:39:32 +0300
commitdcf085f3d299207e41f1b9d99d8841d70e511129 (patch)
treed5068d24333e2d8aef0124c80707b16d43396f5c /build/scripts/fetch_from.py
parent247cb5398c9261bc86473933a9b399624b7f9fbc (diff)
downloadydb-dcf085f3d299207e41f1b9d99d8841d70e511129.tar.gz
Make local directory resources same to distbuild
better
Diffstat (limited to 'build/scripts/fetch_from.py')
-rwxr-xr-xbuild/scripts/fetch_from.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/scripts/fetch_from.py b/build/scripts/fetch_from.py
index 78306d1794..a73462e2d4 100755
--- a/build/scripts/fetch_from.py
+++ b/build/scripts/fetch_from.py
@@ -238,7 +238,8 @@ def fetch_url(url, unpack, resource_file_name, expected_md5=None, expected_sha1=
with tarfile.open(tmp_file_name, mode="r|gz") as tar:
tar.extractall(tmp_dir)
tmp_file_name = os.path.join(tmp_dir, resource_file_name)
- real_md5 = md5file(tmp_file_name)
+ if expected_md5:
+ real_md5 = md5file(tmp_file_name)
logging.info('File size %s (expected %s)', real_file_size, expected_file_size or "UNKNOWN")
logging.info('File md5 %s (expected %s)', real_md5, expected_md5)