From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BCC74138A1A for ; Mon, 9 Feb 2015 20:12:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 534A4E090F; Mon, 9 Feb 2015 20:12:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A6FFAE090F for ; Mon, 9 Feb 2015 20:12:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A1C61340712 for ; Mon, 9 Feb 2015 20:12:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 48EBED1ED for ; Mon, 9 Feb 2015 20:12:33 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1423512704.a1091d4b0c538cfabc1f67e7758d7c9bab71a040.dolsen@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/sync/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/sync/controller.py X-VCS-Directories: pym/portage/sync/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: a1091d4b0c538cfabc1f67e7758d7c9bab71a040 X-VCS-Branch: master Date: Mon, 9 Feb 2015 20:12:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b565b8cf-cd54-4e31-807e-880e63a3aea2 X-Archives-Hash: 2dae8027df18a1bc9bf8a985403162a9 commit: a1091d4b0c538cfabc1f67e7758d7c9bab71a040 Author: Brian Dolbec gentoo org> AuthorDate: Mon Feb 9 19:51:01 2015 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Mon Feb 9 20:11:44 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=a1091d4b portage/sync/controller.py: Fix missed self.portdb assignment bug 539478 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. --- pym/portage/sync/controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/sync/controller.py b/pym/portage/sync/controller.py index 1583767..6dec3c8 100644 --- a/pym/portage/sync/controller.py +++ b/pym/portage/sync/controller.py @@ -135,7 +135,7 @@ class SyncManager(object): 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, @@ -192,6 +192,7 @@ class SyncManager(object): % (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: