From 47164587531641e8bcfbbfe59c7550de89ac2e55 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 4 Sep 2006 19:50:52 +0000 Subject: [PATCH] For emerge dep_check calls, use a config instance that has the correct state and the correct $ROOT. svn path=/main/trunk/; revision=4403 --- bin/emerge | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/emerge b/bin/emerge index 5bcb6eaa4..e18aa7794 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1017,8 +1017,15 @@ class depgraph: #processing dependencies """ Call portage.dep_check to evaluate the use? conditionals and make sure all dependencies are satisfiable. """ + if myparent: + p_type, p_root, p_key, p_status = myparent.split() + dep_settings = self.pkgsettings[p_root] + dep_settings.setcpv(p_key) + else: + dep_settings = self.pkgsettings[self.target_root] + dep_settings.reset() mycheck = portage.dep_check(depstring, self.mydbapi[myroot], - pkgsettings, myuse=myuse, + dep_settings, myuse=myuse, use_binaries=("--usepkgonly" in self.myopts), myroot=myroot, trees=self.trees) -- 2.26.2