From 88f0b2c6aec15bae14f53a6e76b83e856529ac72 Mon Sep 17 00:00:00 2001 From: Sergey Shnatsel Davidoff Date: Thu, 13 Sep 2012 16:48:57 -0700 Subject: [PATCH] Support Apport in PPA: Closes #5697 --- debian/geary-crashdb.conf | 5 +++++ debian/geary.install | 3 +++ debian/source_geary.py | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 debian/geary-crashdb.conf create mode 100644 debian/geary.install create mode 100644 debian/source_geary.py diff --git a/debian/geary-crashdb.conf b/debian/geary-crashdb.conf new file mode 100644 index 00000000..63c2eb62 --- /dev/null +++ b/debian/geary-crashdb.conf @@ -0,0 +1,5 @@ +geary = { + 'impl' : 'launchpad', + 'project' : 'geary', + 'bug_pattern_base' : None, +} diff --git a/debian/geary.install b/debian/geary.install new file mode 100644 index 00000000..79776255 --- /dev/null +++ b/debian/geary.install @@ -0,0 +1,3 @@ +debian/geary-crashdb.conf etc/apport/crashdb.conf.d/ +debian/source_geary.py usr/share/apport/package-hooks/ + diff --git a/debian/source_geary.py b/debian/source_geary.py new file mode 100644 index 00000000..96dbeb50 --- /dev/null +++ b/debian/source_geary.py @@ -0,0 +1,26 @@ +#!/usr/bin/python + +'''Apport package hook for geary + +(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 + +def add_info(report, ui=None): + if not apport.packaging.is_distro_package(report['Package'].split()[0]): + report['CrashDB'] = 'geary'