mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
17 lines
375 B
Python
Executable File
17 lines
375 B
Python
Executable File
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
|