File: source_synaptic.py

package info (click to toggle)
synaptic 0.91.7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,676 kB
  • sloc: cpp: 19,830; xml: 10,562; ansic: 2,084; makefile: 498; sed: 93; python: 82; sh: 52
file content (15 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'''apport package hook for synaptic

(c) 2011 Canonical Ltd.
Author: Brian Murray <brian@ubuntu.com>
'''

from apport.hookutils import *


def add_info(report):
    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 -'})