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

Author: zmedico
Date: 2010-02-19 10:03:11 +0000 (Fri, 19 Feb 2010)
New Revision: 15381

Modified:
   main/trunk/pym/portage/dep.py
Log:
Fix deprecated dep_getkey usage in match_from_list.


Modified: main/trunk/pym/portage/dep.py
===================================================================
--- main/trunk/pym/portage/dep.py	2010-02-19 09:43:36 UTC (rev 15380)
+++ main/trunk/pym/portage/dep.py	2010-02-19 10:03:11 UTC (rev 15381)
@@ -1056,7 +1056,9 @@
 		for x in candidate_list:
 			cp = getattr(x, "cp", None)
 			if cp is None:
-				cp = dep_getkey(x)
+				mysplit = catpkgsplit(remove_slot(x))
+				if mysplit is not None:
+					cp = mysplit[0] + '/' + mysplit[1]
 			if cp != mycpv:
 				continue
 			mylist.append(x)




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

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

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-19 10:03 [gentoo-commits] portage r15381 - main/trunk/pym/portage 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