I actually included this in the generic update-manager apport package hook so it'll appear in all update-manager bug reports instead of just distribution upgrades.
# collect gconf settings for update-manager
report['GconfUpdateManager'] = command_output(['gconftool-2', '-R', '/apps/update-manager'])
# grab the non-default values too as it is easier to compare with both the
# settings and the non-default values
attach_gconf(report, 'update-manager')
attach_file_if_exists(report, '/var/log/apt/history.log', 'DpkgHistoryLog.txt')
attach_root_command_outputs(report, {'DpkgTerminalLog.txt': 'cat /var/log/apt/term.log', 'CurrentDmesg.txt': 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'})
I actually included this in the generic update-manager apport package hook so it'll appear in all update-manager bug reports instead of just distribution upgrades.
'''apport package hook for update-manager
(c) 2011 Canonical Ltd.
Author: Brian Murray <email address hidden>
'''
from apport.hookutils import *
def add_info(report):
# collect gconf settings for update-manager 'GconfUpdateMan ager'] = command_ output( ['gconftool- 2', '-R',
'/apps/ update- manager' ]) gconf(report, 'update-manager') file_if_ exists( report, '/var/log/ apt/history. log',
'DpkgHistoryLo g.txt') root_command_ outputs( report,
{'DpkgTerminal Log.txt' : 'cat /var/log/ apt/term. log',
'CurrentDmesg .txt': 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'})
report[
# grab the non-default values too as it is easier to compare with both the
# settings and the non-default values
attach_
attach_
attach_