[flatpak] fix update-check for 1.5.x | [appimage] tray update notifications

This commit is contained in:
Vinicius Moreira
2019-10-11 19:12:19 -03:00
parent c6cdfe30d0
commit 391bac7943
3 changed files with 16 additions and 3 deletions

View File

@@ -353,8 +353,15 @@ class AppImageManager(SoftwareManager):
self.dbs_updater.start()
def list_updates(self, internet_available: bool) -> List[PackageUpdate]:
# TODO
pass
res = self.read_installed(disk_loader=None, internet_available=internet_available)
updates = []
if res.installed:
for app in res.installed:
if app.update:
updates.append(PackageUpdate(pkg_id=app.name, pkg_type='appimage', version=app.latest_version))
return updates
def list_warnings(self) -> List[str]:
pass