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

Author: zmedico
Date: 2008-05-02 22:11:25 +0000 (Fri, 02 May 2008)
New Revision: 10110

Modified:
   main/trunk/pym/_emerge/__init__.py
Log:
Use match_pkgs() to simplify package comparison.


Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py	2008-05-02 21:49:26 UTC (rev 10109)
+++ main/trunk/pym/_emerge/__init__.py	2008-05-02 22:11:25 UTC (rev 10110)
@@ -3665,9 +3665,8 @@
 							for atom in root_config.sets[
 								"world"].iterAtomsForPackage(task):
 								satisfied = False
-								for cpv in graph_db.match(atom):
-									if cpv == inst_pkg.cpv and \
-										inst_pkg in graph_db:
+								for pkg in graph_db.match_pkgs(atom):
+									if pkg == inst_pkg:
 										continue
 									satisfied = True
 									break

-- 
gentoo-commits@lists.gentoo.org mailing list



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

only message in thread, other threads:[~2008-05-02 22:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02 22:11 [gentoo-commits] portage r10110 - 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