Fix NameError when collision-protect is enabled for bug #138793.
authorZac Medico <zmedico@gentoo.org>
Sun, 2 Jul 2006 01:14:57 +0000 (01:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 2 Jul 2006 01:14:57 +0000 (01:14 -0000)
svn path=/main/trunk/; revision=3747

pym/portage.py

index bf0299e09e45396efa11b3cda6d456c41fd713f6..b995ab0544ee2b2fca6f735c2cdccf6d7aeabd39 100644 (file)
@@ -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: