aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2024-05-31 21:56:45 -0700
committerZac Medico <zmedico@gentoo.org>2024-06-01 12:18:35 -0700
commit1a7fc63d20ad2e1292be3697c105c2d7e1691f91 (patch)
treeed0fae4b2bcc0b3a1d1b18ef081c73253838399f
parenteapi.sh: Drop ___eapi_has_dohtml_deprecated() (diff)
downloadportage-1a7fc63d20ad2e1292be3697c105c2d7e1691f91.tar.gz
portage-1a7fc63d20ad2e1292be3697c105c2d7e1691f91.tar.bz2
portage-1a7fc63d20ad2e1292be3697c105c2d7e1691f91.zip
MergeProcess: Pass bintree to subprocess
It's required for FEATURES=*-backup. Fixes: b9a85ff987ea ("MergeProcess: Support QueryCommand with spawn start method") Bug: https://bugs.gentoo.org/933297 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--lib/portage/dbapi/_MergeProcess.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/portage/dbapi/_MergeProcess.py b/lib/portage/dbapi/_MergeProcess.py
index d9ab2b47a..34e39eb22 100644
--- a/lib/portage/dbapi/_MergeProcess.py
+++ b/lib/portage/dbapi/_MergeProcess.py
@@ -1,4 +1,4 @@
-# Copyright 2010-2023 Gentoo Authors
+# Copyright 2010-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
import functools
@@ -183,11 +183,12 @@ class MergeProcess(ForkProcess):
# Since the entire QueryCommand._db is not required, only pass
# in tree types that QueryCommand specifically requires.
+ # NOTE: For FEATURES=*-backup bintree is needed (bug 933297).
child_db = {}
parent_db = portage.db if QueryCommand._db is None else QueryCommand._db
for root in parent_db:
child_db[root] = {}
- for tree_type in ("vartree", "porttree"):
+ for tree_type in ("bintree", "porttree", "vartree"):
child_db[root][tree_type] = parent_db[root][tree_type]
self.target = functools.partial(