From: Zac Medico Date: Wed, 13 Jun 2007 05:45:19 +0000 (-0000) Subject: Use cached dblink instances for collision-protect. (trunk r6825) X-Git-Tag: v2.1.3_rc1~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4b4b3a663258cf5bc15e06bc8cbbd9ea773e0885;p=portage.git Use cached dblink instances for collision-protect. (trunk r6825) svn path=/main/branches/2.1.2/; revision=6826 --- diff --git a/pym/portage.py b/pym/portage.py index 8e067d21e..73beaabb0 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -7437,21 +7437,6 @@ class dblink: stopmerge=False starttime=time.time() i=0 - - otherpkg=[] - mypkglist=[] - - if self.pkg in otherversions: - otherversions.remove(self.pkg) # we already checked this package - - myslot = self.settings["SLOT"] - 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, - vartree=self.vartree)) - collisions = [] print green("*")+" checking "+str(len(myfilelist))+" files for package collisions" @@ -7471,7 +7456,7 @@ class dblink: if f[0] != "/": f="/"+f isowned = False - for ver in [self]+mypkglist: + for ver in [self] + others_in_slot: if (ver.isowner(f, destroot) or ver.isprotected(f)): isowned = True break