diff -Nru apport-hooks-elementary-0.1/apport/pantheon-calculator-crashdb.conf apport-hooks-elementary-0.1/apport/pantheon-calculator-crashdb.conf --- apport-hooks-elementary-0.1/apport/pantheon-calculator-crashdb.conf 1970-01-01 00:00:00.000000000 +0000 +++ apport-hooks-elementary-0.1/apport/pantheon-calculator-crashdb.conf 2015-01-25 01:50:16.000000000 +0000 @@ -0,0 +1,6 @@ +pantheon_calculator = { + 'impl' : 'launchpad', + 'project' : 'pantheon-calculator', + 'bug_pattern_base' : None, + 'initial_subscriber' : 'rabbitbot-a' +} diff -Nru apport-hooks-elementary-0.1/apport/source_pantheon-calculator.py apport-hooks-elementary-0.1/apport/source_pantheon-calculator.py --- apport-hooks-elementary-0.1/apport/source_pantheon-calculator.py 1970-01-01 00:00:00.000000000 +0000 +++ apport-hooks-elementary-0.1/apport/source_pantheon-calculator.py 2015-01-25 01:50:16.000000000 +0000 @@ -0,0 +1,38 @@ +#!/usr/bin/python + +'''Apport package hook for source package pantheon-calculator + +(c) 2012 Robert Dyer, Rico Tzschichholz, Sergey "Shnatsel" Davidoff + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +''' + +from apport.hookutils import * +from os import path +from subprocess import * + +def add_info(report, ui=None): + if not apport.packaging.is_distro_package(report['Package'].split()[0]): + report['CrashDB'] = 'pantheon_calculator' + attach_gsettings_package (report, report['Package'].split()[0]) + try: + gsettings_dump = check_output(['/usr/lib/apport-hooks-elementary/dump-gsettings-for-package', report['Package'].split()[0] ], stderr=STDOUT) + if gsettings_dump != '': + report['GSettings'] = gsettings_dump + except CalledProcessError: + report['GSettingsDumpFailed'] = 'GSettings-dumping command returned an error.\nThe output was:\n{0}\nPlease report a bug about it to the maintainer of your apport hooks.'.format(gsettings_dump) + except OSError as e: + report['GSettingsDumpFailed'] = 'Could not call GSettings-dumping command.\nThe error was: {0}\nPlease report a bug about it to the maintainer of your apport hooks.'.format(e.strerror) + except ValueError as e: + report['GSettingsDumpFailed'] = 'The function to invoke GSettings dump was called with invalid arguments.\nThe error was: {0}\nPlease report a bug about it to the maintainer of your apport hooks.'.format(e.strerror) diff -Nru apport-hooks-elementary-0.1/debian/bzr-builder.manifest apport-hooks-elementary-0.1/debian/bzr-builder.manifest --- apport-hooks-elementary-0.1/debian/bzr-builder.manifest 2014-07-25 11:32:37.000000000 +0000 +++ apport-hooks-elementary-0.1/debian/bzr-builder.manifest 2015-01-25 01:50:16.000000000 +0000 @@ -1,2 +1,2 @@ -# bzr-builder format 0.3 deb-version {debupstream}-0~39 -lp:~elementary-os/elementaryos/apport-hooks-luna revid:shnatsel@gmail.com-20140724111140-fk3p14uoa8608gis +# bzr-builder format 0.3 deb-version {debupstream}-0~40 +lp:~elementary-os/elementaryos/apport-hooks-luna revid:cody@elementaryos.org-20150125014826-scqzowso8jqf8q3b diff -Nru apport-hooks-elementary-0.1/debian/changelog apport-hooks-elementary-0.1/debian/changelog --- apport-hooks-elementary-0.1/debian/changelog 2014-07-25 11:32:37.000000000 +0000 +++ apport-hooks-elementary-0.1/debian/changelog 2015-01-25 01:50:16.000000000 +0000 @@ -1,8 +1,8 @@ -apport-hooks-elementary (0.1-0~39~ubuntu14.10.1) utopic; urgency=low +apport-hooks-elementary (0.1-0~40~ubuntu14.10.1) utopic; urgency=low * Auto build. - -- Launchpad Package Builder Fri, 25 Jul 2014 11:32:37 +0000 + -- Launchpad Package Builder Sun, 25 Jan 2015 01:50:16 +0000 apport-hooks-elementary (0.1) unstable; urgency=low