summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-02 01:14:57 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-02 01:14:57 +0000
commit5f4d3665ec58ae8f54d8e52ba834ca09ac536171 (patch)
tree2ca9a3f89dff94a4693e7296ceb5a56d2bf24e7f
parent200133280e4ece1d17ec2a8bc7f4229bff5303f3 (diff)
downloadportage-5f4d3665ec58ae8f54d8e52ba834ca09ac536171.tar.gz
portage-5f4d3665ec58ae8f54d8e52ba834ca09ac536171.tar.bz2
portage-5f4d3665ec58ae8f54d8e52ba834ca09ac536171.zip
Fix NameError when collision-protect is enabled for bug #138793.
svn path=/main/trunk/; revision=3747
-rw-r--r--pym/portage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index bf0299e09..b995ab054 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6202,7 +6202,9 @@ class dblink:
for v in otherversions:
# only allow versions with same slot to overwrite files
if myslot == self.vartree.dbapi.aux_get("/".join((self.cat, v)), ["SLOT"])[0]:
- mypkglist.append(dblink(self.cat,v,destroot,self.settings))
+ mypkglist.append(
+ dblink(self.cat, v, destroot, self.settings,
+ vartree=self.vartree))
print green("*")+" checking "+str(len(myfilelist))+" files for package collisions"
for f in myfilelist: