From: Zac Medico Date: Mon, 4 Sep 2006 19:50:52 +0000 (-0000) Subject: For emerge dep_check calls, use a config instance that has the correct state and... X-Git-Tag: v2.1.1~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47164587531641e8bcfbbfe59c7550de89ac2e55;p=portage.git For emerge dep_check calls, use a config instance that has the correct state and the correct $ROOT. svn path=/main/trunk/; revision=4403 --- 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)