[flatpak] fix -> displaying duplicate runtimes on the upgrade summary when a runtime is available at the system and user levels

This commit is contained in:
Vinicius Moreira
2021-03-02 12:41:44 -03:00
parent 5cd3041987
commit 5f5b3182b1
2 changed files with 3 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Not properly treating a dependency version before comparing with others (could display that a given dependency was not found) - Not properly treating a dependency version before comparing with others (could display that a given dependency was not found)
- Flatpak - Flatpak
- displaying duplicate runtimes on the upgrade summary when a runtime is available at the system and user levels
- installation level tooltip not being localized - installation level tooltip not being localized
- displaying installation level tooltip for not installed apps - displaying installation level tooltip for not installed apps

View File

@@ -630,8 +630,9 @@ class FlatpakManager(SoftwareManager):
all_runtimes = [] all_runtimes = []
for runtime in runtimes: for runtime in runtimes:
for partial in partials: for partial in partials:
if partial.base_id == runtime.id: if partial.installation == runtime.installation and partial.base_id == runtime.id:
all_runtimes.append(partial) all_runtimes.append(partial)
break
all_runtimes.append(runtime) all_runtimes.append(runtime)
return [*all_runtimes, *apps] return [*all_runtimes, *apps]