[geany/geany] 5bd878: Reuse ConfigurationContext when searching for programs if we have one
Enrico Tröger
git-noreply at xxxxx
Fri Aug 29 13:46:44 UTC 2014
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger at uvena.de>
Committer: Enrico Tröger <enrico.troeger at uvena.de>
Date: Fri, 29 Aug 2014 13:46:44 UTC
Commit: 5bd878cb7cab25beed42166e42fe67690207e9fe
https://github.com/geany/geany/commit/5bd878cb7cab25beed42166e42fe67690207e9fe
Log Message:
-----------
Reuse ConfigurationContext when searching for programs if we have one
This enables proper logging when checking for rst2html during configuration.
Modified Paths:
--------------
wscript
Modified: wscript
7 lines changed, 4 insertions(+), 3 deletions(-)
===================================================================
@@ -714,9 +714,10 @@ def _find_program(ctx, cmd, **kw):
def noop(*args):
pass
- ctx = ConfigurationContext()
- ctx.to_log = noop
- ctx.msg = noop
+ if ctx is None or not isinstance(ctx, ConfigurationContext):
+ ctx = ConfigurationContext()
+ ctx.to_log = noop
+ ctx.msg = noop
return ctx.find_program(cmd, **kw)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list