Skip to content

Commit

Permalink
portage/sync/controller.py: Fix missed self.portdb assignment bug 539478
Browse files Browse the repository at this point in the history
In _sync_callback() action_metadata() call, portdb was needed as one of it's parameters.
But it was not defined when it was moved into task_opts dictionary to be passed to the sync module.
  • Loading branch information
dol-sen committed Feb 9, 2015
1 parent e4f9c72 commit a1091d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pym/portage/sync/controller.py
Expand Up @@ -135,7 +135,7 @@ def sync(self, emerge_config=None, repo=None, callback=None):
task_opts = {
'emerge_config': emerge_config,
'logger': self.logger,
'portdb': self.trees[self.settings['EROOT']]['porttree'].dbapi,
'portdb': self.portdb,
'repo': repo,
'settings': self.settings,
'spawn_kwargs': self.spawn_kwargs,
Expand Down Expand Up @@ -192,6 +192,7 @@ def pre_sync(self, repo):
% (repo.name, repo.location)
self.logger(self.xterm_titles, msg)
writemsg_level(msg + "\n")
self.portdb = self.trees[self.settings['EROOT']]['porttree'].dbapi
try:
st = os.stat(repo.location)
except OSError:
Expand Down

0 comments on commit a1091d4

Please sign in to comment.