def outdated(self):
return self.outdatedpackages
+class MergeTask(object):
+
+ def __init__(self, settings, trees, myopts):
+ self.settings = settings
+ self.target_root = settings["ROOT"]
+ self.trees = trees
+ self.myopts = myopts
+ self.edebug = 0
+ if settings.get("PORTAGE_DEBUG", "") == "1":
+ self.edebug = 1
+ self.pkgsettings = {}
+ self.pkgsettings[self.target_root] = portage.config(clone=settings)
+ if self.target_root != "/":
+ self.pkgsettings["/"] = \
+ portage.config(clone=trees["/"]["vartree"].settings)
+
def merge(self, mylist, favorites, mtimedb):
returnme=0
mymergelist=[]
if ("--resume" in myopts):
favorites=mtimedb["resume"]["favorites"]
- mydepgraph.merge(mtimedb["resume"]["mergelist"], favorites, mtimedb)
+ mergetask = MergeTask(settings, trees, myopts)
+ mergetask.merge(mtimedb["resume"]["mergelist"], favorites, mtimedb)
else:
if "resume" in mtimedb and \
"mergelist" in mtimedb["resume"] and \
pkglist.append(pkg)
else:
pkglist = mydepgraph.altlist()
- mydepgraph.merge(pkglist, favorites, mtimedb)
+ mergetask = MergeTask(settings, trees, myopts)
+ mergetask.merge(pkglist, favorites, mtimedb)
if mtimedb.has_key("resume"):
del mtimedb["resume"]