mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 05:14:16 +02:00
[flatpak] fix: not displaying updates for partials listed as installed apps/runtimes
This commit is contained in:
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- Flatpak
|
- Flatpak
|
||||||
- not displaying update components not associated with installed packages
|
- not displaying update components not associated with installed packages
|
||||||
- not displaying the updates size for Flatpak 1.2
|
- not displaying the updates size for Flatpak 1.2
|
||||||
|
- not displaying updates for "partials" listed as installed apps/runtimes
|
||||||
|
|
||||||
- UI
|
- UI
|
||||||
- upgrade summary: not displaying the icon type for some applications
|
- upgrade summary: not displaying the icon type for some applications
|
||||||
|
|||||||
@@ -168,13 +168,16 @@ class FlatpakManager(SoftwareManager):
|
|||||||
for partial_update_id in update_map['partial']:
|
for partial_update_id in update_map['partial']:
|
||||||
partial_data = partial_update_id.split('/')
|
partial_data = partial_update_id.split('/')
|
||||||
|
|
||||||
for model_update_id, model in models.items():
|
for model in models.values():
|
||||||
if model.installation == partial_data[2] and model_update_id in partial_data[0] and \
|
if model.installation == partial_data[2] and model.branch == partial_data[1]:
|
||||||
model.branch == partial_data[1]:
|
if model.id == partial_data[0]:
|
||||||
partial_model = model.gen_partial(partial_data[0])
|
model.update = True
|
||||||
partial_model.update = True
|
break
|
||||||
models[partial_update_id] = partial_model
|
elif model.id in partial_data[0]:
|
||||||
break
|
partial_model = model.gen_partial(partial_data[0])
|
||||||
|
partial_model.update = True
|
||||||
|
models[partial_update_id] = partial_model
|
||||||
|
break
|
||||||
|
|
||||||
if models:
|
if models:
|
||||||
ignored = self._read_ignored_updates()
|
ignored = self._read_ignored_updates()
|
||||||
|
|||||||
Reference in New Issue
Block a user