public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r14305 - main/trunk/pym/_emerge
@ 2009-09-20 22:59 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-09-20 22:59 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-09-20 22:59:04 +0000 (Sun, 20 Sep 2009)
New Revision: 14305

Modified:
   main/trunk/pym/_emerge/depgraph.py
Log:
Fix depgraph._validate_blockers() so that it doesn't do prohibited Atom(Atom)
constructor calls.


Modified: main/trunk/pym/_emerge/depgraph.py
===================================================================
--- main/trunk/pym/_emerge/depgraph.py	2009-09-20 22:45:32 UTC (rev 14304)
+++ main/trunk/pym/_emerge/depgraph.py	2009-09-20 22:59:04 UTC (rev 14305)
@@ -2604,8 +2604,7 @@
 						except KeyError:
 							pass
 					if blockers is not None:
-						blockers = set(str(blocker.atom) \
-							for blocker in blockers)
+						blockers = set(blocker.atom for blocker in blockers)
 
 					# If this node has any blockers, create a "nomerge"
 					# node for it so that they can be enforced.
@@ -2636,7 +2635,7 @@
 						continue
 
 					if blocker_data:
-						blocker_atoms = blocker_data.atoms
+						blocker_atoms = [Atom(atom) for atom in blocker_data.atoms)]
 					else:
 						# Use aux_get() to trigger FakeVartree global
 						# updates on *DEPEND when appropriate.
@@ -2675,7 +2674,7 @@
 							show_invalid_depstring_notice(pkg, depstr, atoms)
 							return False
 						blocker_atoms = [myatom for myatom in atoms \
-							if myatom.startswith("!")]
+							if myatom.blocker]
 						blocker_atoms.sort()
 						counter = long(pkg.metadata["COUNTER"])
 						blocker_cache[cpv] = \
@@ -2683,7 +2682,7 @@
 					if blocker_atoms:
 						try:
 							for atom in blocker_atoms:
-								blocker = Blocker(atom=portage.dep.Atom(atom),
+								blocker = Blocker(atom=atom,
 									eapi=pkg.metadata["EAPI"], root=myroot)
 								self._dynamic_config._blocker_parents.add(blocker, pkg)
 						except portage.exception.InvalidAtom as e:




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-20 22:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-20 22:59 [gentoo-commits] portage r14305 - main/trunk/pym/_emerge Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox