apport-cli saves reports for later with a .txt suffix, but ubuntu-bug wants saved reports to have .crash suffix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt | ||
Jaunty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: apport
When saving a report for later with apport-cli (as invoked from ubuntu-bug on an ubuntu-server install), the report is saved with a .txt suffix; however, the /usr/bin/ubuntu-bug shell script only treats files with a .crash suffix as saved crash reports, thus the saved crash report gets mistreated as a regular file and looked up via 'dpkg-query --search' to find out which package it belongs to, which of course fails:
$ ubuntu-bug apport
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
......
*** Send problem report to the developers?
After the problem report has been sent, please fill out the form in the
automatically opened web browser.
What would you like to do? Your options are:
S: Send report (1.5 KiB)
V: View report
K: Keep report file for sending later or copying to somewhere else
C: Cancel
Please choose (S/V/K/C): k
Problem report file: /tmp/apport.
$ ubuntu-bug /tmp/apport.
dpkg: /tmp/apport.
Path '/tmp/apport.
Usage: apport-cli [options]
apport-cli: error: -p option requires an argument
Manually invoking apport-cli -c /blah/blah/
ProblemType: Bug
Architecture: i386
CrashReports: 600:0:0:
Date: Mon Jul 20 16:33:05 2009
DistroRelease: Ubuntu 9.10
LiveMediaBuild: Ubuntu 9.10 "Karmic Koala" - Alpha i386 (20090716)
Package: apport 1.6-0ubuntu1
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: apport
Uname: Linux 2.6.31-3-generic i686
Changed in apport (Ubuntu Jaunty): | |
status: | Fix Committed → Fix Released |
Changed in apport (Ubuntu Jaunty): | |
status: | Fix Released → Fix Committed |
Attached is patch that changes the saved file format to apport. $PACKAGE_ NAME_$VERSION. XXXXXX. apport and causes apport to treat files named *.apport as saved reports.