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 <br...@ubuntu.com>
'''

from apport.hookutils import *


def add_info(report):

    # 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 
-'}) 

** Changed in: update-manager (Ubuntu Oneiric)
       Status: Triaged => Fix Released

** Changed in: update-manager (Ubuntu Oneiric)
     Assignee: (unassigned) => Brian Murray (brian-murray)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/773429

Title:
  apport_pkgfailure function of DistUpgradeApport.py should include
  current dmesg

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/773429/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to