Merge lp:~jderose/novacut/apport into lp:novacut

Proposed by Jason Gerard DeRose
Status: Merged
Approved by: James Raymond
Approved revision: 289
Merged at revision: 289
Proposed branch: lp:~jderose/novacut/apport
Merge into: lp:novacut
Diff against target: 44 lines (+30/-0)
3 files modified
debian/novacut-crashdb.conf (+4/-0)
debian/novacut.install (+2/-0)
debian/source_novacut.py (+24/-0)
To merge this branch: bzr merge lp:~jderose/novacut/apport
Reviewer Review Type Date Requested Status
James Raymond Approve
Review via email: mp+122811@code.launchpad.net

Description of the change

* Adds novacut-crashdb.conf file so crashes are reported to the novacut Launchpad project

* Adds a source_novacut.py hook that sets the CrashDB to 'novacut' and adds the log files in ~/.cache/novacut

* Adds novacut.install to install the above 2 files

To post a comment you must log in.
Revision history for this message
James Raymond (jamesmr) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'debian/novacut-crashdb.conf'
--- debian/novacut-crashdb.conf 1970-01-01 00:00:00 +0000
+++ debian/novacut-crashdb.conf 2012-09-05 08:32:26 +0000
@@ -0,0 +1,4 @@
1novacut = {
2 'impl': 'launchpad',
3 'project': 'novacut',
4}
05
=== added file 'debian/novacut.install'
--- debian/novacut.install 1970-01-01 00:00:00 +0000
+++ debian/novacut.install 2012-09-05 08:32:26 +0000
@@ -0,0 +1,2 @@
1debian/novacut-crashdb.conf etc/apport/crashdb.conf.d/
2debian/source_novacut.py usr/share/apport/package-hooks/
03
=== added file 'debian/source_novacut.py'
--- debian/source_novacut.py 1970-01-01 00:00:00 +0000
+++ debian/source_novacut.py 2012-09-05 08:32:26 +0000
@@ -0,0 +1,24 @@
1'''apport package hook for novacut.
2
3(c) 2012 Novacut Inc
4Author: Jason Gerard DeRose <jderose@novacut.com>
5'''
6
7import os
8from os import path
9
10from apport.hookutils import attach_file_if_exists
11
12LOGS = (
13 ('ServiceLog', 'novacut-service.log'),
14 ('GtkLog', 'novacut-gtk.log'),
15 ('RendererLog', 'novacut-renderer.log'),
16)
17
18def add_info(report):
19 report['CrashDB'] = 'novacut'
20 cache = path.join(os.environ['HOME'], '.cache', 'novacut')
21 for (key, name) in LOGS:
22 log = path.join(cache, name)
23 attach_file_if_exists(report, log, key)
24

Subscribers

People subscribed via source and target branches

to status/vote changes: