Also return app names in list-updates

This commit is contained in:
AaronDewes 2022-06-15 08:29:16 +00:00
parent c7342afafb
commit 47e589ade8

View File

@ -203,13 +203,13 @@ def checkUpdateAvailable(name: str):
return False
def getAvailableUpdates():
availableUpdates = []
availableUpdates = {}
apps = findAndValidateApps(appsDir)
for app in apps:
try:
checkResult = checkUpdateAvailable(app)
if checkResult:
availableUpdates.append(checkResult)
availableUpdates[app] = checkResult
except Exception:
print("Warning: Can't check app {} yet".format(app), file=sys.stderr)
return availableUpdates