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

Author: zmedico
Date: 2008-07-21 10:29:14 +0000 (Mon, 21 Jul 2008)
New Revision: 11156

Modified:
   main/trunk/pym/portage/dbapi/vartree.py
Log:
In dblink.findProviders(), clone the "path" variable before extending it
since obviously it shouldn't grow each time that findProviders() is called.


Modified: main/trunk/pym/portage/dbapi/vartree.py
===================================================================
--- main/trunk/pym/portage/dbapi/vartree.py	2008-07-21 06:08:38 UTC (rev 11155)
+++ main/trunk/pym/portage/dbapi/vartree.py	2008-07-21 10:29:14 UTC (rev 11156)
@@ -224,6 +224,7 @@
 			if obj not in self._obj_properties:
 				raise KeyError("%s not in object list" % obj)
 		arch, needed, path, soname = self._obj_properties[obj]
+		path = path[:]
 		path.extend(self._defpath)
 		path = set(realpath(x) for x in path)
 		for x in needed:




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

only message in thread, other threads:[~2008-07-21 10:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21 10:29 [gentoo-commits] portage r11156 - main/trunk/pym/portage/dbapi 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