diff options
author | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2015-11-01 20:09:35 +0200 |
---|---|---|
committer | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2015-11-01 20:14:57 +0200 |
commit | 61100f7773e39f7392da6f73c59703dd36f437e0 (patch) | |
tree | ed875b0af3a829c4916da2d33c6c3416f18fbbd2 /tools | |
parent | 40d823614a11e9798e6c3f9b70ba957bdaa041ee (diff) | |
download | gobject-introspection-61100f7773e39f7392da6f73c59703dd36f437e0.tar.gz |
g-ir-tool-template: Fix a coding error that hooks up pdb in any build
A condition was supposed to test if GI_SCANNER_DEBUG environment
variable is unset or empty, but instead always evaluated to true.
This results in any build pausing in pdb whenever an uncaught exception
occurs in a g-ir-* tool.
https://bugzilla.gnome.org/show_bug.cgi?id=757443
Diffstat (limited to 'tools')
-rw-r--r-- | tools/g-ir-tool-template.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/g-ir-tool-template.in b/tools/g-ir-tool-template.in index f80730ec..edc68a4c 100644 --- a/tools/g-ir-tool-template.in +++ b/tools/g-ir-tool-template.in @@ -31,9 +31,9 @@ if sys.version_info.major < 3: else: import builtins -debug = os.getenv('GI_SCANNER_DEBUG', '').split(',') +debug = os.getenv('GI_SCANNER_DEBUG') if debug: - if 'pydevd' in debug: + if 'pydevd' in debug.split(','): # http://pydev.org/manual_adv_remote_debugger.html pydevdpath = os.getenv('PYDEVDPATH', None) if pydevdpath is not None and os.path.isdir(pydevdpath): |