mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 07:04:16 +02:00
Init
This commit is contained in:
16
core/updater.py
Executable file
16
core/updater.py
Executable file
@@ -0,0 +1,16 @@
|
||||
from model import flatpak
|
||||
|
||||
|
||||
def list_packages():
|
||||
packages = flatpak.list_installed()
|
||||
|
||||
if packages:
|
||||
packages = [pak for pak in packages if not pak['runtime']]
|
||||
|
||||
if packages:
|
||||
packages.sort(key=lambda p: p['name'].lower())
|
||||
|
||||
for pak in packages:
|
||||
pak['update'] = flatpak.check_update(pak['ref'])
|
||||
|
||||
return packages
|
||||
Reference in New Issue
Block a user