From dd3baf8d0a13618786aa04d203b109a8196d37bb Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 13 Apr 2022 14:21:32 -0300 Subject: [PATCH] [flatpak] fix: download sizes not being displayed when there are new required runtimes for installed Flatpaks --- CHANGELOG.md | 2 +- bauh/gems/flatpak/flatpak.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d503cac..3afe7621 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,7 +54,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - removing unused packages on any type of transaction (this is the default behaviour for aptitude) - Flatpak - - some updates not being displayed when there are new required runtimes for installed Flatpaks + - some updates or download sizes 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 diff --git a/bauh/gems/flatpak/flatpak.py b/bauh/gems/flatpak/flatpak.py index d8cb597f..e656fc56 100755 --- a/bauh/gems/flatpak/flatpak.py +++ b/bauh/gems/flatpak/flatpak.py @@ -440,7 +440,8 @@ def run(app_id: str): def map_update_download_size(app_ids: Iterable[str], installation: str, version: Version) -> Dict[str, float]: - success, output = ProcessHandler().handle_simple(SimpleProcess(('flatpak', 'update', f'--{installation}'))) + success, output = ProcessHandler().handle_simple(SimpleProcess(('flatpak', 'update', f'--{installation}', + '--no-deps'))) if version >= VERSION_1_2: res = {} p = re.compile(r'^\d+.\t')