Comment 1 for bug 773429

Revision history for this message
Brian Murray (brian-murray) wrote :

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
    report['GconfUpdateManager'] = command_output(['gconftool-2', '-R',
    # 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',
        {'DpkgTerminalLog.txt': 'cat /var/log/apt/term.log',
         'CurrentDmesg.txt': 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'})