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
1=== added file 'debian/novacut-crashdb.conf'
2--- debian/novacut-crashdb.conf 1970-01-01 00:00:00 +0000
3+++ debian/novacut-crashdb.conf 2012-09-05 08:32:26 +0000
4@@ -0,0 +1,4 @@
5+novacut = {
6+ 'impl': 'launchpad',
7+ 'project': 'novacut',
8+}
9
10=== added file 'debian/novacut.install'
11--- debian/novacut.install 1970-01-01 00:00:00 +0000
12+++ debian/novacut.install 2012-09-05 08:32:26 +0000
13@@ -0,0 +1,2 @@
14+debian/novacut-crashdb.conf etc/apport/crashdb.conf.d/
15+debian/source_novacut.py usr/share/apport/package-hooks/
16
17=== added file 'debian/source_novacut.py'
18--- debian/source_novacut.py 1970-01-01 00:00:00 +0000
19+++ debian/source_novacut.py 2012-09-05 08:32:26 +0000
20@@ -0,0 +1,24 @@
21+'''apport package hook for novacut.
22+
23+(c) 2012 Novacut Inc
24+Author: Jason Gerard DeRose <jderose@novacut.com>
25+'''
26+
27+import os
28+from os import path
29+
30+from apport.hookutils import attach_file_if_exists
31+
32+LOGS = (
33+ ('ServiceLog', 'novacut-service.log'),
34+ ('GtkLog', 'novacut-gtk.log'),
35+ ('RendererLog', 'novacut-renderer.log'),
36+)
37+
38+def add_info(report):
39+ report['CrashDB'] = 'novacut'
40+ cache = path.join(os.environ['HOME'], '.cache', 'novacut')
41+ for (key, name) in LOGS:
42+ log = path.join(cache, name)
43+ attach_file_if_exists(report, log, key)
44+

Subscribers

People subscribed via source and target branches

to status/vote changes: