[flatpak] fix: download sizes not being displayed when there are new required runtimes for installed Flatpaks

This commit is contained in:
Vinicius Moreira
2022-04-13 14:21:32 -03:00
parent 0eb335ef07
commit dd3baf8d0a
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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')