summaryrefslogtreecommitdiffstats
path: root/build/scripts/fetch_from.py
diff options
context:
space:
mode:
authorilnurkh <[email protected]>2023-03-24 21:20:04 +0300
committerilnurkh <[email protected]>2023-03-24 21:20:04 +0300
commit4ec807d707bcf5633133b072cb006494dc0b3211 (patch)
tree6128eb759eed9b8b025ca717f6712abe32136475 /build/scripts/fetch_from.py
parent75afa64ae6543777e6f3b3fe4122490811f027e6 (diff)
Revert commit rXXXXXX
Diffstat (limited to 'build/scripts/fetch_from.py')
-rwxr-xr-xbuild/scripts/fetch_from.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/build/scripts/fetch_from.py b/build/scripts/fetch_from.py
index a73462e2d45..78306d17944 100755
--- a/build/scripts/fetch_from.py
+++ b/build/scripts/fetch_from.py
@@ -238,8 +238,7 @@ 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)
- if expected_md5:
- real_md5 = md5file(tmp_file_name)
+ 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)