~cyphermox/ubuntu/precise/xscreensaver/merge-5.15-2

« back to all changes in this revision

Viewing changes to debian/source_xscreensaver.py

  • Committer: Bazaar Package Importer
  • Author(s): Brian Murray
  • Date: 2009-07-13 10:22:54 UTC
  • Revision ID: james.westby@ubuntu.com-20090713102254-9t13rl04crtsbm4d
Tags: 5.08-0ubuntu3
Added an apport package hook (LP: #398007) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'''apport package hook for xscreensaver
 
2
 
 
3
(c) 2009 Canonical Ltd.
 
4
Author: Brian Murray <brian@ubuntu.com>
 
5
 
 
6
This program is free software; you can redistribute it and/or modify it
 
7
under the terms of the GNU General Public License as published by the
 
8
Free Software Foundation; either version 3 of the License, or (at your
 
9
option) any later version.  See http://www.gnu.org/copyleft/gpl.html for
 
10
the full text of the license.
 
11
'''
 
12
 
 
13
from apport.hookutils import *
 
14
 
 
15
def add_info(report):
 
16
 
 
17
    attach_file_if_exists(report, '/var/log/Xorg.0.log', 'XorgLog')
 
18
    attach_file_if_exists(report, '/var/log/Xorg.0.log.old', 'XorgLogOld')
 
19
    report['DisplayDevices'] = pci_devices(PCI_DISPLAY)
 
20
    report['glxinfo'] = command_output(['glxinfo'])
 
21
    nonfree_kernel_modules()