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 38A87138ACF for ; Thu, 4 Dec 2014 20:16:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20CCDE08D9; Thu, 4 Dec 2014 20:16:13 +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 6CD04E08D9 for ; Thu, 4 Dec 2014 20:16:12 +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 73017340596 for ; Thu, 4 Dec 2014 20:16:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 178FAB93A for ; Thu, 4 Dec 2014 20:16:10 +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: <1417722993.54bcea5d7acf3e79653f4fe0f1e8e3ed552ae342.dol-sen@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/sync/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/sync/syncbase.py X-VCS-Directories: pym/portage/sync/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 54bcea5d7acf3e79653f4fe0f1e8e3ed552ae342 X-VCS-Branch: master Date: Thu, 4 Dec 2014 20:16:10 +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: 305be60f-888e-46a4-b3e0-f5a3364f5e1c X-Archives-Hash: 4847edd8865148dcbf17841c69c7bc70 Message-ID: <20141204201610.Oppxn7CwcXC4TS_YKhwQGhUrQxh3IvHFb1RDqb5tFgQ@z> commit: 54bcea5d7acf3e79653f4fe0f1e8e3ed552ae342 Author: Brian Dolbec gentoo org> AuthorDate: Tue Jun 17 00:42:29 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Thu Dec 4 19:56:33 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=54bcea5d sync/syncbase.py: Fix the self.has_bin logic --- pym/portage/sync/syncbase.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pym/portage/sync/syncbase.py b/pym/portage/sync/syncbase.py index 2b6b8c7..94d4aab 100644 --- a/pym/portage/sync/syncbase.py +++ b/pym/portage/sync/syncbase.py @@ -34,16 +34,18 @@ class SyncBase(object): self.repo = None self.xterm_titles = None self.spawn_kwargs = None - self.bin_command = portage.process.find_binary(bin_command) - - self.has_bin = True - if bin_command and self.bin_command is None: - msg = ["Command not found: %s" % bin_command, - "Type \"emerge %s\" to enable %s support." % (bin_pkg, bin_command)] - for l in msg: - writemsg_level("!!! %s\n" % l, - level=self.logger.ERROR, noiselevel=-1) - self.has_bin = False + self.bin_command = None + self.has_bin = False + if bin_command: + self.bin_command = portage.process.find_binary(bin_command) + if self.bin_command is None: + msg = ["Command not found: %s" % bin_command, + "Type \"emerge %s\" to enable %s support." % (bin_pkg, bin_command)] + for l in msg: + writemsg_level("!!! %s\n" % l, + level=self.logger.ERROR, noiselevel=-1) + else: + self.has_bin = True def _kwargs(self, kwargs):