summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-18 23:01:26 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-18 23:01:26 -0700
commit4f947efbded8028260d920a0c8de01180884fc48 (patch)
treeb898d43a6564a1def7280c5757bf57ae79c5ab11
parent44aebc7119071af8db514fcbe6aa2f3de2b896d7 (diff)
downloadportage-4f947efbded8028260d920a0c8de01180884fc48.tar.gz
portage-4f947efbded8028260d920a0c8de01180884fc48.tar.bz2
portage-4f947efbded8028260d920a0c8de01180884fc48.zip
Invert SetArg conditional in depgraph._set_args(), for clarity.
-rw-r--r--pym/_emerge/depgraph.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index de0592185..b231de322 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -1949,10 +1949,11 @@ class depgraph(object):
for arg in self._expand_set_args(args, add_to_digraph=False):
atom_arg_map = self._dynamic_config.sets[
arg.root_config.root].atom_arg_map
- if isinstance(arg, (AtomArg, PackageArg)):
- atom_group = non_set_atoms[arg.root_config.root]
- else:
+ if isinstance(arg, SetArg):
atom_group = set_atoms[arg.root_config.root]
+ else:
+ atom_group = non_set_atoms[arg.root_config.root]
+
for atom in arg.pset.getAtoms():
atom_group.append(atom)
atom_key = (atom, arg.root_config.root)