~bmillemathias/ubuntu/lucid/bluez/main

« back to all changes in this revision

Viewing changes to debian/source_bluez.py

  • Committer: Baptiste Mille-Mathias
  • Date: 2010-03-30 20:17:40 UTC
  • Revision ID: baptiste.millemathias@gmail.com-20100330201740-xycqg76lft3qofss
Fix source_bluez.py changes that were lost in bzr upgrade

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
(c) 2010 Free Software Foundation
6
6
Author:
7
 
Baptiste Mille-Mathias <baptistemm@src.gnome.org>
 
7
Baptiste Mille-Mathias <baptistem@src.gnome.org>
8
8
 
9
9
'''
10
10
from apport.hookutils import *
11
11
import re
12
12
 
13
13
def add_info(report, ui):
14
 
    recent_syslog(re.compile(r'bluetooth', re.IGNORECASE))
 
14
    report['syslog'] = recent_syslog(re.compile(r'bluetooth', re.IGNORECASE))
15
15
    attach_hardware(report)
16
16
    if command_available('hciconfig'):
17
 
        command_output('hciconfig')
 
17
        report['hciconfig'] = command_output('hciconfig')
18
18
    if command_available('rfkill'):
19
 
        command_output('rfkill list')
 
19
        report['rfkill'] = command_output(['rfkill','list'])
20
20
    if command_available('getfacl'):
21
 
        command_output('getfacl /dev/rfkill')
 
21
        report['getfacl'] = command_output(['getfacl','/dev/rfkill'])
22
22
 
23
23
    interesting_modules = ('btusb', 'rfcomm', 'sco', 'bnep', 'l2cap', 'bluetooth')
24
24
    interesting_modules_loaded = []
31
31
    if interesting_modules_loaded:
32
32
        report['InterestingModules'] = ' '.join(interesting_modules_loaded)
33
33
 
34
 
    ui.information("""If you can reproduce your bug, please follow the next steps:
 
34
    ui.information("""Your bug report will be processed in few seconds.
 
35
If you can reproduce it, please follow the next steps:
35
36
    - Open a new terminal
36
37
    - Run the command "sudo hcidump -XYt > $HOME/hci.log"
37
38
    - Reproduce the actions until the error happens