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)
else:
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:
print(e)
@ -117,9 +117,9 @@ if __name__ == '__main__':
if sig_result and iso_result:
print("Wait for verification ...")
time.sleep(5)
local_filename = iso["sig"].split("/")[-1]
result = subprocess.run(["gpg", "--verify", f"{local_filename}"],
cwd=f"{FOLDER}")
result = subprocess.run(
["gpg", "--verify", f'{iso["sig"].split("/")[-1]}'],
cwd=f"{FOLDER}")
else:
print("Download ISO failed")
sys.exit(0)

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
requests