public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r15560 - main/branches/2.1.7/bin
@ 2010-03-02 20:09 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2010-03-02 20:09 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2010-03-02 20:09:11 +0000 (Tue, 02 Mar 2010)
New Revision: 15560

Modified:
   main/branches/2.1.7/bin/emaint
Log:
Skip atom validation in WorldHandler since WorldSelectedSet handles this
already, and use Atom.cp instead of dep_getkey(). (trunk r15327)

Modified: main/branches/2.1.7/bin/emaint
===================================================================
--- main/branches/2.1.7/bin/emaint	2010-03-02 20:08:56 UTC (rev 15559)
+++ main/branches/2.1.7/bin/emaint	2010-03-02 20:09:11 UTC (rev 15560)
@@ -51,7 +51,7 @@
 		if onProgress:
 			onProgress(maxval, 0)
 		for i, atom in enumerate(world_atoms):
-			if not portage.isvalidatom(atom):
+			if not isinstance(atom, portage.dep.Atom):
 				if atom.startswith(SETPREFIX):
 					s = atom[len(SETPREFIX):]
 					if s in sets:
@@ -63,12 +63,11 @@
 				if onProgress:
 					onProgress(maxval, i+1)
 				continue
-			cp = portage.dep_getkey(atom)
 			okay = True
 			if not vardb.match(atom):
 				self.not_installed.append(atom)
 				okay = False
-			if portage.catsplit(cp)[0] not in categories:
+			if portage.catsplit(atom.cp)[0] not in categories:
 				self.invalid_category.append(atom)
 				okay = False
 			if okay:




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

only message in thread, other threads:[~2010-03-02 20:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-02 20:09 [gentoo-commits] portage r15560 - main/branches/2.1.7/bin 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