commit:     5f5012803b2b647f6b7528f48579a8c27c8a3fd7
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 14 19:54:39 2023 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat Oct 14 19:55:49 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=5f501280

depgraph: Skip _eliminate_rebuilds for --emptytree

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 lib/_emerge/depgraph.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py
index 4e4452dad1..deab51718b 100644
--- a/lib/_emerge/depgraph.py
+++ b/lib/_emerge/depgraph.py
@@ -3605,6 +3605,9 @@ class depgraph:
         careful to obey the user's wishes if they have explicitly requested
         for a package to be rebuilt or reinstalled for some reason.
         """
+        if "empty" in self._dynamic_config.myparams:
+            return False
+
         modified = False
         selective = "selective" in self._dynamic_config.myparams
         for root, atom in 
self._dynamic_config._slot_operator_replace_installed:

Reply via email to