示例#1
0
def add_info(report):
    """Add info to the report."""
    # attach the log
    fname = logger.get_filename()
    attach_file_if_exists(report, fname, "EncuentroLog")

    # info about dependencies
    packages = ["python-requests", "python-defer", "python-qt4", "python-xdg"]
    attach_related_packages(report, packages)
def add_info(report):
    """Add info to the report."""

    # attach the log
    fname = logger.get_filename()
    attach_file_if_exists(report, fname, "MagicicadaLog")

    # which ubuntuone-client package version is installed
    attach_related_packages(report, ["ubuntuone-client"])
示例#3
0
def add_info(report, ui):
    # get info on all files in /var/crash/
    reports = glob('/var/crash/*')
    if reports:
        report['CrashReports'] = command_output(
            ['stat', '-c', '%a:%u:%g:%s:%y:%x:%n'] + reports)

    attach_related_packages(report, ['apport-noui'])
    # is the system set to autoreport crashes?
    if os.path.exists('/var/lib/apport/autoreport'):
        report['Tags'] += ' autoreport-true'
    else:
        report['Tags'] += ' autoreport-false'

    attach_file_if_exists(report, '/var/log/upstart/whoopsie.log')
示例#4
0
def add_info(report, ui):
    response = ui.yesno("The contents of your /etc/ssh/ssh_config file "
                        "may help developers diagnose your bug more "
                        "quickly.  However, it may contain sensitive "
                        "information.  Do you want to include it in your "
                        "bug report?")

    if response == None:  # user cancelled
        raise StopIteration

    elif response:
        attach_conffiles(report, 'openssh-client')

    attach_related_packages(
        report, ['ssh-askpass', 'libpam-ssh', 'keychain', 'ssh-askpass-gnome'])
    report['SSHClientVersion'] = command_output(['/usr/bin/ssh', '-V'])
示例#5
0
def add_info(report):
    attach_related_packages(report, [
            "libgl1-mesa-glx",
            "libgl1",
            "libglib2.0-0",
            "libgtk2.0-0",
            "libnotify1",
            "libnotify1-gtk2.10",
            "libqt5core5a",
            "libqt5gui5",
            "libsdl-image1.2",
            "libsdl1.2debian",
            "libx11-6",
            "libxcb-keysyms1",
            "libxcb1",
            "libxext6",
            "libxinerama1",
            "libxv1",
            "libxxf86vm1",
            ])
示例#6
0
def add_info(report):
	attach_related_packages(report, [
		"libaa1",
		"libgl1-mesa-glx",
		"libgl1",
		"libglib2.0-0",
		"libgtk2.0-0",
		"libnotify1",
		"libnotify1-gtk2.10",
		"libqtcore4",
		"libqtgui4",
		"libsdl-image1.2",
		"libsdl1.2debian",
		"libx11-6",
		"libx264-85",
		"libxcb-keysyms1",
		"libxcb1",
		"libxext6",
		"libxinerama1",
		"libxv1",
		"libxxf86vm1",
		] )