K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / apport / package-hooks /
server ip : 172.67.156.115

your ip : 172.69.214.58

H O M E


Filename/usr/share/apport/package-hooks/source_update-manager.py
Size1.26 kb
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:55
Last modified26-Mar-2014 18:27
Last accessed06-Jul-2025 16:34
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
# -*- Mode: Python; indent-tabs-mode: nil; tab-width: 4; coding: utf-8 -*-

'''apport package hook for update-manager

(c) 2011 Canonical Ltd.
Author: Brian Murray <[email protected]>
'''

import os
import re
from apport.hookutils import (
attach_gsettings_package, attach_root_command_outputs,
attach_file_if_exists, recent_syslog)


def add_info(report, ui):

problem_type = report.get("ProblemType", None)
if problem_type == "Bug":
response = ui.yesno("Is the issue you are reporting one you \
encountered when upgrading Ubuntu from one release to another?")
else:
response = None
if response:
os.execlp('apport-bug', 'apport-bug', 'ubuntu-release-upgrader')
else:
try:
attach_gsettings_package(report, 'update-manager')
except:
pass
attach_file_if_exists(report, '/var/log/apt/history.log',
'DpkgHistoryLog.txt')
attach_file_if_exists(report, '/var/log/apt/term.log',
'DpkgTerminalLog.txt')
attach_root_command_outputs(
report,
{'CurrentDmesg.txt':
'dmesg | comm -13 --nocheck-order /var/log/dmesg -'})
report["Aptdaemon"] = recent_syslog(re.compile("AptDaemon"))