summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-21 10:29:14 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-21 10:29:14 +0000
commit52715bab156e4132cdcd399ce6f0d70329faf990 (patch)
treebe3401f18bd5413bacc488c87c16ae9c82823d65
parent87b0ba879ab6eab04f70ffc9dadca329637f8d72 (diff)
downloadportage-52715bab156e4132cdcd399ce6f0d70329faf990.tar.gz
portage-52715bab156e4132cdcd399ce6f0d70329faf990.tar.bz2
portage-52715bab156e4132cdcd399ce6f0d70329faf990.zip
In dblink.findProviders(), clone the "path" variable before extending it
since obviously it shouldn't grow each time that findProviders() is called. svn path=/main/trunk/; revision=11156
-rw-r--r--pym/portage/dbapi/vartree.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 2127cae0a..3400cba7f 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -224,6 +224,7 @@ class LinkageMap(object):
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: