diff options
author | Chris Johns <chrisj@rtems.org> | 2014-05-08 02:58:14 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-05-08 13:20:29 +1000 |
commit | 74da24cb61ef4478ca499c029a732cdba13ee668 (patch) | |
tree | f8eddd16894d6464ec036a4be4a0054b45be0ada /source-builder/sb/git.py | |
parent | config: Fix the host and build options for Canadian cross builds. (diff) | |
download | rtems-source-builder-74da24cb61ef4478ca499c029a732cdba13ee668.tar.bz2 |
sb: Generate an error report on an error.
Generate an error report users can send to the mailing list with
error details.
Diffstat (limited to 'source-builder/sb/git.py')
-rw-r--r-- | source-builder/sb/git.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source-builder/sb/git.py b/source-builder/sb/git.py index 3c0fcd7..890889d 100644 --- a/source-builder/sb/git.py +++ b/source-builder/sb/git.py @@ -50,10 +50,10 @@ class repo: self._git_exit_code(exit_code) return exit_code, output - def __init__(self, _path, opts, macros = None): + def __init__(self, _path, opts = None, macros = None): self.path = _path self.opts = opts - if macros is None: + if macros is None and opts is not None: self.macros = opts.defaults else: self.macros = macros |