From: Zac Medico Date: Mon, 7 Nov 2011 06:32:30 +0000 (-0800) Subject: Respect --usepkgonly in suggestions, bug #389617 X-Git-Tag: v2.2.0_alpha73~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=618115ef705d495d199449bfbc9c6135a8f58f94;p=portage.git Respect --usepkgonly in suggestions, bug #389617 --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index fcdcc6c4e..084864076 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -3270,7 +3270,8 @@ class depgraph(object): all_cp = set() all_cp.update(vardb.cp_all()) - all_cp.update(portdb.cp_all()) + if "--usepkgonly" not in self._frozen_config.myopts: + all_cp.update(portdb.cp_all()) if "--usepkg" in self._frozen_config.myopts: all_cp.update(bindb.cp_all()) # discard dir containing no ebuilds