commit: ccc699916f6e7103db4d467458b78d40797279ca Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Fri Mar 14 15:30:55 2014 +0000 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> CommitDate: Fri Mar 14 16:18:18 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ccc69991
portage/sync/syncbase: optimize bin_command handling in __init__(). --- pym/portage/sync/syncbase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/sync/syncbase.py b/pym/portage/sync/syncbase.py index 9a840d6..95dcf5f 100644 --- a/pym/portage/sync/syncbase.py +++ b/pym/portage/sync/syncbase.py @@ -21,10 +21,10 @@ class SyncBase(object): self.logger = None self.repo = None self.xterm_titles = None - self.bin_command = bin_command + self.bin_command = portage.process.find_binary(bin_command) self.has_bin = True - if bin_command and portage.process.find_binary(bin_command) is None: + 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: