Management panel shows update commands streams

This commit is contained in:
Vinicius Moreira
2019-06-18 17:01:13 -03:00
parent 833f7c142e
commit 3ffe2ad96f
9 changed files with 92 additions and 45 deletions

View File

@@ -90,3 +90,19 @@ class FlatpakManager:
return [*self.apps]
return []
def update_app(self, ref: str):
"""
:param ref:
:return: the update command stream
"""
if self.apps:
package_found = [app for app in self.apps if app['ref'] == ref]
if package_found:
return flatpak.update_and_stream(ref)
return None