[buildd-tools-devel] Bug#665368: sbuild: interactive debugging support

Gergely Nagy algernon at balabit.hu
Fri Mar 23 15:52:01 UTC 2012


Colin Watson <cjwatson at debian.org> writes:

> It would be lovely to have an option to run a given interactive command
> if a build failed, or even just to run a shell.  I realise this is no
> use in buildd environments, but when running sbuild by hand it would be
> very useful.

Doesn't $purge_session = 'successful'; do pretty much this?

By setting it to successful (from the default always), the chroot is
only cleaned up when the build succeeds. If it fails, you can schroot
in, and have everything ready.

And as far as I remember, sbuild exists with a non-zero exit status if
the build fals, so you could do something like

 sbuild $blah || schroot $foo

-- 
|8]






More information about the Buildd-tools-devel mailing list