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)
This is the launchpad-users mailing list archive — see also the general help for Launchpad.net mailing lists.
(Formatted by MHonArc.)