Hey Martin,

Martin Pool [2010-01-11 16:56 +1100]:
> I want a script that will look at bzr bugs that have apport crash
> attachments, unpack them, and then attach the traceback as a comment
> on the bug.  (For example
> https://bugs.edge.launchpad.net/bzr/+bug/504715).  The Python
> traceback is already human-readable so no retracing is needed.
> 
> I realize this can be done through the api but I wondered if there was
> already code to do it?

There is a script to unpack a .crash file into its elements
(apport-unpack), but it's not integrated in the way you describe.  The
python-apport API allows you to unpack a .crash file
(apport.Report.load()), generate an apport.Report() object out of it,
and upload its data to an existing bug
(apport.crashdb.CrashDatabase.update()).

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to