Comment 22 for bug 1004029

Revision history for this message
Brian Murray (brian-murray) wrote : Re: test bug report for using apport-collect

add_info in the ubuntu.py general hook is called two times and the 2nd time ProblemType is not set:

 $ apport-collect -p linux 1004029
> /usr/share/apport/general-hooks/ubuntu.py(35)add_info()
     34 import ipdb; ipdb.set_trace()
---> 35 if report.get('ProblemType') == 'Package':
     36 check_for_disk_error(report)

ipdb> report.get('ProblemType')
'Bug'
ipdb> continue
No packages found matching linux.
> /usr/share/apport/general-hooks/ubuntu.py(35)add_info()
     34 import ipdb; ipdb.set_trace()
---> 35 if report.get('ProblemType') == 'Package':
     36 check_for_disk_error(report)

ipdb> report.get('ProblemType')