diff options
author | Zac Medico <zmedico@gentoo.org> | 2024-01-17 04:49:32 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2024-01-17 04:50:46 -0800 |
commit | da5b18a418233e289229d3d124f6352e531c9ffb (patch) | |
tree | 0724f26e59ee8311cd8af9c06f7b5deaf1fc713e /lib/_emerge/depgraph.py | |
parent | emerge: backtrack consistently regardless of --fetchonly (diff) | |
download | gentoo-portage-da5b18a418233e289229d3d124f6352e531c9ffb.tar.xz gentoo-portage-da5b18a418233e289229d3d124f6352e531c9ffb.zip |
depgraph: Fix SyntaxWarning: 'str' object is not callable
Fixes: a5078e577493 ("emerge: backtrack consistently regardless of --fetchonly")
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge/depgraph.py')
-rw-r--r-- | lib/_emerge/depgraph.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py index 7491d970c3d..1cbbbaf8154 100644 --- a/lib/_emerge/depgraph.py +++ b/lib/_emerge/depgraph.py @@ -3794,7 +3794,8 @@ class depgraph: except KeyError: optional_msg = " ({} previously removed from graph)" warnings.warn( - f"_eliminate_rebuilds inconsistency: parent priorities missing for {parent} -> {pkg} edge"( + f"_eliminate_rebuilds inconsistency: parent priorities missing for {parent} -> {pkg} edge" + + ( optional_msg.format("parent and child") if parent in removed and pkg in removed else optional_msg.format("parent") @@ -3815,7 +3816,8 @@ class depgraph: except KeyError: optional_msg = " ({} previously removed from graph)" warnings.warn( - f"_eliminate_rebuilds inconsistency: parent priorities missing for {pkg} -> {child} edge"( + f"_eliminate_rebuilds inconsistency: parent priorities missing for {pkg} -> {child} edge" + + ( optional_msg.format("parent and child") if pkg in removed and child in removed else optional_msg.format("parent") |