From e2817e426d5609ac2111d6c5019977589c477a56 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 13 Apr 2022 11:29:32 -0300 Subject: [PATCH] [flatpak] fix: informing the download size as the additional installation size (upgrade summary) --- CHANGELOG.md | 1 + bauh/gems/flatpak/controller.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09bcd948..7fd00697 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Flatpak - 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) + - upgrade: informing the download size as the additional installation size - UI - not displaying the right unit symbol for byte based sizes (kB, MB, TB, ...) [#250](https://github.com/vinifmor/bauh/issues/250) diff --git a/bauh/gems/flatpak/controller.py b/bauh/gems/flatpak/controller.py index c88fa10f..53dbaac8 100644 --- a/bauh/gems/flatpak/controller.py +++ b/bauh/gems/flatpak/controller.py @@ -701,7 +701,7 @@ class FlatpakManager(SoftwareManager, SettingsController): for p in apps_by_install[0]: 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, []) def sort_update_order(self, pkgs: List[FlatpakApplication]) -> List[FlatpakApplication]: