Comment 5 for bug 391015

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: [Bug 391015] [NEW] apport package hook for Bazaar

On Tue, Jun 23, 2009 at 09:21:33AM -0000, Robert Collins wrote:
> On Tue, 2009-06-23 at 08:53 +0000, Matt Zimmerman wrote:
> > Public bug reported:
> >
> > Binary package hint: bzr
> >
> > Attached is an apport package hook for Bazaar. By installing
> > source_bzr.py in /usr/share/apport/package-hooks, you can cause Ubuntu
> > bug reports for bzr to include additional information, including the end
> > of ~/.bzr.log and the output of "bzr plugins -v".
>
> We had previously written directly to the apport API, which allows
> gathering this data in-process rather than later when the log may be
> messy or distorted (by other bzr processes).
>
> Is that no longer supported?

Both approaches are independently useful, though there may be value in
sharing code between the package hook and your internal error handler.

> Note that bzr never 'crashes' in the python sense, so apport won't ever
> see bzr fail to trigger, unless we do it ourselves.

While apport originated as a crash handler, it has grown into much more than
that. We encourage all Ubuntu bug reports to be reported using apport, even
when they are manually initiated (rather than in response to a crash).

It's used when a user runs "ubuntu-bug bzr" for example, to report a bug
which didn't result in a crash.

See
http://mdzlog.alcor.net/2009/03/31/please-dont-report-ubuntu-bugs-directly-to-launchpad/

--
 - mdz