Skip to content

Commit e539573

Browse files
committed
Simplify file checking
1 parent 6c3a97f commit e539573

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

run_release.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,18 +1021,13 @@ def wait_until_all_files_are_in_folder(db: ReleaseShelf) -> None:
10211021
linux_tick = "✅" if are_linux_files_there else "❌"
10221022
windows_tick = "✅" if are_windows_files_there else "❌"
10231023
macos_tick = "✅" if are_macos_files_there else "❌"
1024+
10241025
if db["security_release"]:
1025-
print(
1026-
f"\rWaiting for files: Linux {linux_tick} (security release mode - only checking Linux) ",
1027-
flush=True,
1028-
end="",
1029-
)
1026+
waiting = f"\rWaiting for files: Linux {linux_tick} (security release - only checking Linux)"
10301027
else:
1031-
print(
1032-
f"\rWaiting for files: Linux {linux_tick} Windows {windows_tick} Mac {macos_tick} ",
1033-
flush=True,
1034-
end="",
1035-
)
1028+
waiting = f"\rWaiting for files: Linux {linux_tick} Windows {windows_tick} Mac {macos_tick} "
1029+
1030+
print(waiting, flush=True, end="")
10361031
time.sleep(1)
10371032
print()
10381033

0 commit comments

Comments
 (0)