On Sun, 24 Nov 2024 17:04:40 +0000 Richard Lewis
<richard.lewis.deb...@googlemail.com> wrote:

> If the builder fails, or is interrupted the export_dir
> is not removed.

> https://salsa.debian.org/agx/git-buildpackage/-/blob/master/gbp/scripts/buildpackage.py
> lines 689-611
>
> if not options.tag_only:
>   if options.export_dir and options.purge and not retval:
>  RemoveTree(export_dir)()
>
> Could either remove the "and not retval" (and then people
> could use --git-no-purge to retain the export

I submitted an MR for this here -
https://salsa.debian.org/agx/git-buildpackage/-/merge_requests/12

(i also tested this with --git-builder=debuild, (with no access to
gpg, so it 'fails' because it cant
sign the package), and it works: no  dir is left, unless you pass
--git-no-purge, but you still get a
1 exit code).

Reply via email to