minify statement - added requirements.txt for use with other os
This commit is contained in:
parent
84baff99d2
commit
1a2fbbe5d0
2 changed files with 5 additions and 4 deletions
6
get-iso
6
get-iso
|
@ -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,8 +117,8 @@ 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")
|
||||||
|
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
requests
|
Loading…
Reference in a new issue