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

Author: zmedico
Date: 2008-02-19 01:53:45 +0000 (Tue, 19 Feb 2008)
New Revision: 9351

Modified:
   main/trunk/pym/portage/sets/dbapi.py
Log:
Make LibraryConsumerSet.mapPathsToAtoms() produce slot atoms so that atoms
aren't restricted to the currently installed version, making upgrades
possible.


Modified: main/trunk/pym/portage/sets/dbapi.py
===================================================================
--- main/trunk/pym/portage/sets/dbapi.py	2008-02-17 23:51:42 UTC (rev 9350)
+++ main/trunk/pym/portage/sets/dbapi.py	2008-02-19 01:53:45 UTC (rev 9351)
@@ -126,8 +126,10 @@
 			link = dblink(mysplit[0], mysplit[1], myroot=self.dbapi.root, \
 					mysettings=self.dbapi.settings, treetype='vartree', \
 					vartree=self.dbapi.vartree)
-			if paths.intersection(link.getcontents().keys()):
-				rValue.add("/".join(catpkgsplit(cpv)[:2]))
+			if paths.intersection(link.getcontents()):
+				cat, pn = catpkgsplit(cpv)[:2]
+				slot = self.dbapi.aux_get(cpv, ["SLOT"])[0]
+				rValue.add("%s/%s:%s" % (cat, pn, slot))
 		return rValue
 	
 

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



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

only message in thread, other threads:[~2008-02-19  1:53 UTC | newest]

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