control: clone -1 -2
control: retitle -2 Prevent expansion of '{}' in Command errors

Hi,
On Mon, Nov 06, 2017 at 03:59:01PM +0100, Andreas Beckmann wrote:
> * in case of failure, the --git-builder command is used as a python
>   format string:
> 
> ...$ gbp buildpackage --git-export=WC --git-builder='env 
> debian_chroot="gbp-do" ${SHELL}' --git-postbuild='cp -vuapf 
> "${GBP_BUILD_DIR}/debian/"* "debian/"' --git-notify=off 
> gbp:info: Exporting 'WC' to '/path/to/package/build-area/package-tmp'
> gbp:info: Moving '/path/to/package/build-area/package-tmp' to 
> '/path/to/package/build-area/package-1.0'
> (gbp-do)...$ exit 1
> exit
> Traceback (most recent call last):
>   File "/usr/bin/gbp", line 151, in <module>
>     sys.exit(supercommand())
>   File "/usr/bin/gbp", line 147, in supercommand
>     return module.main(args)
>   File "/usr/lib/python3/dist-packages/gbp/scripts/buildpackage.py", line 
> 550, in main
>     )(dir=build_dir)
>   File "/usr/lib/python3/dist-packages/gbp/command_wrappers.py", line 248, in 
> __call__
>     Command.__call__(self, list(*args))
>   File "/usr/lib/python3/dist-packages/gbp/command_wrappers.py", line 192, in 
> __call__
>     self._log_err()
>   File "/usr/lib/python3/dist-packages/gbp/command_wrappers.py", line 145, in 
> _log_err
>     log.err(self._format_err())
>   File "/usr/lib/python3/dist-packages/gbp/command_wrappers.py", line 159, in 
> _format_err
>     err_reason=self.err_reason)
> KeyError: 'SHELL'

Sad but true. Thanks!
 -- Guido

Reply via email to