Example #1
0
def add_info(report, ui):

    # for install from the ppa
    if not apport.packaging.is_distro_package(report['Package'].split()[0]):
        report['CrashDB'] = 'unity'
        try:
            version = packaging.get_version('unity')
        except ValueError:
            version = 'N/A'
        if version is None:
            version = 'N/A'
        report['Tags'] += " rc-%s" % version

    # the crash is not in the unity code so reassign
    if "Stacktrace" in report and "/usr/lib/indicators" in report["Stacktrace"]:
        for words in report["Stacktrace"].split():
            if words.startswith("/usr/lib/indicators"):
                report.add_package_info(
                    apport.packaging.get_file_package(words))
                return

    # Include the compiz details
    report.add_hooks_info(ui, srcpackage='compiz')
    # the upstart logs
    attach_upstart_logs(report, 'unity-services')
    attach_upstart_logs(report, 'libunity-core-6.0-9')
    # some gsettings configs
    attach_gsettings_schema(report, 'com.canonical.Unity')
    attach_gsettings_schema(report, 'com.ubuntu.user-interface')
    attach_gsettings_schema(report, 'org.gnome.desktop.interface')
    attach_gsettings_schema(report, 'org.gnome.desktop.lockdown')
Example #2
0
def add_info(report, ui):

    # for install from the ppa
    if not apport.packaging.is_distro_package(report['Package'].split()[0]):
        report['CrashDB'] = 'unity'
        try:
            version = packaging.get_version('unity')
        except ValueError:
            version = 'N/A'
        if version is None:
            version = 'N/A'
        report['Tags'] += " rc-%s" % version
    
    # the crash is not in the unity code so reassign
    if report.has_key("Stacktrace") and "/usr/lib/indicators" in report["Stacktrace"]:
        for words in report["Stacktrace"].split():
            if words.startswith("/usr/lib/indicators"):
                report.add_package_info(apport.packaging.get_file_package(words))
                return

    # only reports all compiz infos if a graphical bug
    compiz_bug = False
    if ui and report['SourcePackage'] == "unity":
        if ui.yesno("Thanks for reporting this bug on unity.  Is the issue you are reporting purely graphical (will report more information about your graphic configuration and will report the bug against compiz)?"):
            compiz_bug = True
    if compiz_bug:
        report.add_hooks_info(ui, srcpackage='compiz')
    else:
        # still send some info like the plugins activated
        # Plugins
        report['CompizPlugins'] = command_output(['gconftool-2',
            '--get', '/apps/compiz-1/general/screen0/options/active_plugins'])

        # User configuration
        report['GconfCompiz'] = command_output(['gconftool-2', '-R', '/apps/compiz-1'])
Example #3
0
def add_info(report, ui):
    package = report.get('Package')
    if not package:
        return
    package = package.split()[0]
    try:
        if '~cloud' in packaging.get_version(package) and \
           packaging.get_package_origin(package) == 'Canonical':
            report['CrashDB'] = '''{
               "impl": "launchpad",
               "project": "cloud-archive",
               "bug_pattern_url": "http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml",
            }'''
    except ValueError as e:
        if 'does not exist' in str(e):
            return
        else:
            raise e
Example #4
0
def add_info(report, ui):

    # for install from the ppa
    if not apport.packaging.is_distro_package(report['Package'].split()[0]):
        report['CrashDB'] = 'unity'
        try:
            version = packaging.get_version('unity')
        except ValueError:
            version = 'N/A'
        if version is None:
            version = 'N/A'
        report['Tags'] += " rc-%s" % version

    # the crash is not in the unity code so reassign
    if "Stacktrace" in report and "/usr/lib/indicators" in report["Stacktrace"]:
        for words in report["Stacktrace"].split():
            if words.startswith("/usr/lib/indicators"):
                report.add_package_info(
                    apport.packaging.get_file_package(words))
                return

    # only reports all compiz infos if a graphical bug
    compiz_bug = False
    if ui and report['SourcePackage'] == "unity":
        if ui.yesno(
                "Thanks for reporting this bug on unity.  Is the issue you are reporting purely graphical (will report more information about your graphic configuration and will report the bug against compiz)?"
        ):
            compiz_bug = True
    if compiz_bug:
        report.add_hooks_info(ui, srcpackage='compiz')
    else:
        # still send some info like the plugins activated
        # Plugins
        report['CompizPlugins'] = command_output([
            'gconftool-2', '--get',
            '/apps/compiz-1/general/screen0/options/active_plugins'
        ])

        # User configuration
        report['GconfCompiz'] = command_output(
            ['gconftool-2', '-R', '/apps/compiz-1'])