From: Zac Medico Date: Mon, 21 Jul 2008 10:29:14 +0000 (-0000) Subject: In dblink.findProviders(), clone the "path" variable before extending it X-Git-Tag: v2.2_rc2~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=52715bab156e4132cdcd399ce6f0d70329faf990;p=portage.git 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 --- 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: