Package: git-buildpackage Version: 0.9.30 Severity: normal X-Debbugs-Cc: richard.lewis.deb...@googlemail.com
Dear Maintainer, If the builder fails, or is interrupted the export_dir is not removed. While i can see why you might want that, it has never been useful to me -- the failure is often in autopkgtests or is obvious from context -- and the build area just fills up with obsolete directories. It would be nice to have an option to always remove the export dir, The relevant part code seems to be 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 or have a new option.purge_on_error and (which could defsult to False if you want) and have "and (options.purge_on_error or not retval)" What do you think? i could send a MR?