mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
fix debug outputs for update checker
This commit is contained in:
@@ -17,12 +17,15 @@ def check_for_updates():
|
||||
assets = latest_release["assets"]
|
||||
|
||||
if latest_version != state.version:
|
||||
print(f"New release available: {latest_version}")
|
||||
if state.debug:
|
||||
print(f"New release available: {latest_version}")
|
||||
if assets:
|
||||
print("Assets:")
|
||||
for asset in assets:
|
||||
print(f" - {asset['name']}: {asset['browser_download_url']}")
|
||||
if state.debug:
|
||||
print("Assets:")
|
||||
for asset in assets:
|
||||
print(f" - {asset['name']}: {asset['browser_download_url']}")
|
||||
return assets, latest_version
|
||||
else:
|
||||
print("Already up-to-date.")
|
||||
if state.debug:
|
||||
print("Already up-to-date.")
|
||||
return None, None
|
||||
|
||||
Reference in New Issue
Block a user