minify statement - added requirements.txt for use with other os

This commit is contained in:
Frede Hundewadt 2023-08-23 10:25:00 +02:00
parent 84baff99d2
commit 1a2fbbe5d0
2 changed files with 5 additions and 4 deletions

View file

@ -34,7 +34,7 @@ def download_file(url: str, folder_name: str) -> bool:
progress += len(data) progress += len(data)
else: else:
progress += block_size progress += block_size
print(f"Received {progress}/{total_size_in_bytes}", end="\r") print(f"Receiving <- {progress}/{total_size_in_bytes}", end="\r")
except Exception as e: except Exception as e:
print(e) print(e)
@ -117,9 +117,9 @@ if __name__ == '__main__':
if sig_result and iso_result: if sig_result and iso_result:
print("Wait for verification ...") print("Wait for verification ...")
time.sleep(5) time.sleep(5)
local_filename = iso["sig"].split("/")[-1] result = subprocess.run(
result = subprocess.run(["gpg", "--verify", f"{local_filename}"], ["gpg", "--verify", f'{iso["sig"].split("/")[-1]}'],
cwd=f"{FOLDER}") cwd=f"{FOLDER}")
else: else:
print("Download ISO failed") print("Download ISO failed")
sys.exit(0) sys.exit(0)

1
requirements.txt Normal file
View file

@ -0,0 +1 @@
requests