mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54: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
|
||||
- not displaying update components not associated with installed packages
|
||||
- not displaying the updates size for Flatpak 1.2
|
||||
- not displaying updates for "partials" listed as installed apps/runtimes
|
||||
|
||||
- UI
|
||||
- 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']:
|
||||
partial_data = partial_update_id.split('/')
|
||||
|
||||
for model_update_id, model in models.items():
|
||||
if model.installation == partial_data[2] and model_update_id in partial_data[0] and \
|
||||
model.branch == partial_data[1]:
|
||||
partial_model = model.gen_partial(partial_data[0])
|
||||
partial_model.update = True
|
||||
models[partial_update_id] = partial_model
|
||||
break
|
||||
for model in models.values():
|
||||
if model.installation == partial_data[2] and model.branch == partial_data[1]:
|
||||
if model.id == partial_data[0]:
|
||||
model.update = True
|
||||
break
|
||||
elif model.id in partial_data[0]:
|
||||
partial_model = model.gen_partial(partial_data[0])
|
||||
partial_model.update = True
|
||||
models[partial_update_id] = partial_model
|
||||
break
|
||||
|
||||
if models:
|
||||
ignored = self._read_ignored_updates()
|
||||
|
||||
Reference in New Issue
Block a user