if not os.path.exists(self.dbcatdir):
os.makedirs(self.dbcatdir)
- # This blocks until we can get the dirs to ourselves.
- self.lockdb()
-
otherversions=[]
for v in self.vartree.dbapi.cp_list(self.mysplit[0]):
otherversions.append(v.split("/")[1])
if not self.getcontents():
self.unmerge(ldpath_mtimes=prev_mtimes)
self.delete()
- self.unlockdb()
+
print
print "Searching all installed packages for file collisions..."
print "Press Ctrl-C to Stop"
self.delete()
movefile(self.dbtmpdir, self.dbpkgdir, mysettings=self.settings)
contents = self.getcontents()
- self.unlockdb()
#write out our collection of md5sums
if cfgfiledict.has_key("IGNORE"):
def merge(self, mergeroot, inforoot, myroot, myebuild=None, cleanup=0,
mydbapi=None, prev_mtimes=None):
- return self.treewalk(mergeroot, myroot, inforoot, myebuild,
- cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
+ try:
+ self.lockdb()
+ return self.treewalk(mergeroot, myroot, inforoot, myebuild,
+ cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
+ finally:
+ self.unlockdb()
def getstring(self,name):
"returns contents of a file with whitespace converted to spaces"