[flatpak] fix: informing the download size as the additional installation size (upgrade summary)

This commit is contained in:
Vinicius Moreira
2022-04-13 11:29:32 -03:00
parent 6937be8cb9
commit e2817e426d
2 changed files with 2 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Flatpak - Flatpak
- some updates not being displayed when there are new required runtimes for installed Flatpaks - some updates not being displayed when there are new required runtimes for installed Flatpaks
- not displaying new required runtimes as updates (requires Flatpak >= 1.12) - not displaying new required runtimes as updates (requires Flatpak >= 1.12)
- upgrade: informing the download size as the additional installation size
- UI - UI
- not displaying the right unit symbol for byte based sizes (kB, MB, TB, ...) [#250](https://github.com/vinifmor/bauh/issues/250) - not displaying the right unit symbol for byte based sizes (kB, MB, TB, ...) [#250](https://github.com/vinifmor/bauh/issues/250)

View File

@@ -701,7 +701,7 @@ class FlatpakManager(SoftwareManager, SettingsController):
for p in apps_by_install[0]: for p in apps_by_install[0]:
p.size = sizes.get(str(p.id)) p.size = sizes.get(str(p.id))
to_update = [UpgradeRequirement(pkg=p, extra_size=p.size, required_size=p.size) for p in self.sort_update_order(pkgs)] to_update = [UpgradeRequirement(pkg=p, extra_size=0, required_size=p.size) for p in self.sort_update_order(pkgs)]
return UpgradeRequirements(None, None, to_update, []) return UpgradeRequirements(None, None, to_update, [])
def sort_update_order(self, pkgs: List[FlatpakApplication]) -> List[FlatpakApplication]: def sort_update_order(self, pkgs: List[FlatpakApplication]) -> List[FlatpakApplication]: