From 2bc3d41331ad341deaba6bda4a36faaafc7f2fae Mon Sep 17 00:00:00 2001 From: papoteur-mga Date: Mon, 24 May 2021 10:45:29 +0200 Subject: [PATCH 1/2] Consumes the list of package of a transaction with distinction in to install packages: normal dependencies and weak dependencies Thus, the weak dependencies can be displayed separately (see issue #185). An entry 'install_weak' is provided by dnfdaemon, according to another pull request. --- dnfdragora/dialogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnfdragora/dialogs.py b/dnfdragora/dialogs.py index ad0fe74..07155c5 100644 --- a/dnfdragora/dialogs.py +++ b/dnfdragora/dialogs.py @@ -397,7 +397,7 @@ def run(self, pkglist): level2Item.this.own(False) # packages that need to be downloaded - if sub in ['install', 'update', 'install-deps', + if sub in ['install', 'update', 'install-deps', 'install_weak', 'update-deps', 'obsoletes']: total_size += size for r in replaces: From 14fbae2603860a29e78a5d192cb55e67d0e56f4b Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 6 Jun 2021 08:40:40 +0200 Subject: [PATCH 2/2] Use 'weak-deps' keyworrd to deal with weak dependecies listed for a transaction --- dnfdragora/dialogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnfdragora/dialogs.py b/dnfdragora/dialogs.py index 07155c5..a18b206 100644 --- a/dnfdragora/dialogs.py +++ b/dnfdragora/dialogs.py @@ -397,7 +397,7 @@ def run(self, pkglist): level2Item.this.own(False) # packages that need to be downloaded - if sub in ['install', 'update', 'install-deps', 'install_weak', + if sub in ['install', 'update', 'install-deps', 'weak-deps', 'update-deps', 'obsoletes']: total_size += size for r in replaces: