Skip to content

Commit

Permalink
rmoved debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
anandhu-eng committed Sep 13, 2024
1 parent 8335231 commit 920d8ba
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion script/download-file/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def preprocess(i):
checksum_cmd = f"echo {env.get('CM_DOWNLOAD_CHECKSUM')} {x}{q}{env['CM_DOWNLOAD_FILENAME']}{q} | md5sum -c{x_c} -"
checksum_result = subprocess.run(checksum_cmd, capture_output=True, text=True, shell=True)
if env.get('CM_DOWNLOAD_CHECKSUM_FILE', '') != '' or env.get('CM_DOWNLOAD_CHECKSUM', '') != '':
print(checksum_result) #for debugging
if "checksum did not match" in checksum_result.stderr.lower():
computed_checksum = subprocess.run(f"md5sum {env['CM_DOWNLOAD_FILENAME']}", capture_output=True, text=True, shell=True).stdout.split(" ")[0]
print(f"WARNING: File already present, mismatch between original checksum({env.get('CM_DOWNLOAD_CHECKSUM')}) and computed checksum({computed_checksum}). Deleting the already present file and downloading new.")
Expand Down

0 comments on commit 920d8ba

Please sign in to comment.