Merge lp:~zulcss/ubuntu/lucid/openssh/openssh-apport-hook into lp:ubuntu/lucid/openssh

Proposed by Chuck Short
Status: Merged
Merge reported by: James Westby
Merged at revision: not available
Proposed branch: lp:~zulcss/ubuntu/lucid/openssh/openssh-apport-hook
Merge into: lp:ubuntu/lucid/openssh
Diff against target: 108 lines (+65/-0)
6 files modified
debian/apport/openssh-client.py (+27/-0)
debian/apport/openssh-server.py (+24/-0)
debian/changelog (+8/-0)
debian/openssh-client.dirs (+1/-0)
debian/openssh-server.dirs (+1/-0)
debian/rules (+4/-0)
To merge this branch: bzr merge lp:~zulcss/ubuntu/lucid/openssh/openssh-apport-hook
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+18880@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Chuck Short (zulcss) wrote :

Adds apport hooks as per the server-lucid-apport-hooks spec.

Revision history for this message
Colin Watson (cjwatson) wrote :

I merged this (by diff/patch, since it was against the automatic import branch rather than the one I actually develop in), and made some changes to use dh_apport and fix up spelling and the like. Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'debian/apport'
2=== added file 'debian/apport/openssh-client.py'
3--- debian/apport/openssh-client.py 1970-01-01 00:00:00 +0000
4+++ debian/apport/openssh-client.py 2010-02-08 21:39:12 +0000
5@@ -0,0 +1,27 @@
6+#!/usr/bin/python
7+
8+'''apport hook for openssh-client
9+
10+(c) 2010 Canonical Ltd.
11+Author: Chuck Short <chuck.short@canonical.com>
12+
13+This program is free software; you can redistribute it and/or modify it
14+under the terms of the GNU General Public License as published by the
15+Free Software Foundation; either version 2 of the License, or (at your
16+option) any later version. See http://www.gnu.org/copyleft/gpl.html for
17+the full text of the license.
18+'''
19+
20+from apport.hookutils import *
21+
22+def add_info(report, ui):
23+ response = ui.yesno("The contents of your /etc/ssh/ssh_config file may help developers diagnose your bug more quickly. However, it may contain sensitive information. Do you want to include it in your bug report?")
24+
25+ if response == None: #use cancelled
26+ raise StopIteration
27+
28+ elif response == True:
29+ attach_conffiles(report, 'openssh-client')
30+ attach_related_packages(report, ['ssh-askpace', 'libpam-ssh', 'keychain',
31+ 'ssh-askpass-gnome'])
32+ report['SSHClientVersion'] = command_output(['/usr/bin/ssh', '-V'])
33
34=== added file 'debian/apport/openssh-server.py'
35--- debian/apport/openssh-server.py 1970-01-01 00:00:00 +0000
36+++ debian/apport/openssh-server.py 2010-02-08 21:39:12 +0000
37@@ -0,0 +1,24 @@
38+#!/usr/bin/python
39+
40+'''apport hook for openssh-server
41+
42+(c) 2010 Canonical Ltd.
43+Author: Chuck Short <chuck.short@canonical.com>
44+
45+This program is free software; you can redistribute it and/or modify it
46+under the terms of the GNU General Public License as published by the
47+Free Software Foundation; either version 2 of the License, or (at your
48+option) any later version. See http://www.gnu.org/copyleft/gpl.html for
49+the full text of the license.
50+'''
51+
52+from apport.hookutils import *
53+
54+def add_info(report, ui):
55+ response = ui.yesno("The contents of your /etc/ssh/sshd_config file may help developers diagnose your bug more quickly. However, it may content sensitive information. Do you want to include it in your bug report?")
56+
57+ if response == None: #user canceled
58+ raise StopIteration
59+
60+ elif response == True:
61+ report['SSHDConfig'] = root_command_output('/usr/sbin/sshd', '-T'])
62
63=== modified file 'debian/changelog'
64--- debian/changelog 2010-01-26 13:07:40 +0000
65+++ debian/changelog 2010-02-08 21:39:12 +0000
66@@ -1,3 +1,11 @@
67+openssh (1:5.3p1-1ubuntu2) lucid; urgency=low
68+
69+ * debian/openssh-server.dirs, debian/openssh-client.dirs, debian/rules,
70+ debian/apport/openssh-server.py, debian/apport/openssh-client.py:
71+ Install apport hook, apart of the server-lucid-apport-hooks specification.
72+
73+ -- Chuck Short <zulcss@ubuntu.com> Mon, 08 Feb 2010 16:16:14 -0500
74+
75 openssh (1:5.3p1-1ubuntu1) lucid; urgency=low
76
77 * Resynchronise with Debian. Remaining changes:
78
79=== modified file 'debian/openssh-client.dirs'
80--- debian/openssh-client.dirs 2005-10-10 20:10:01 +0000
81+++ debian/openssh-client.dirs 2010-02-08 21:39:12 +0000
82@@ -1,1 +1,2 @@
83 usr/share/lintian/overrides
84+usr/share/apport/package-hooks
85
86=== modified file 'debian/openssh-server.dirs'
87--- debian/openssh-server.dirs 2010-01-04 13:45:21 +0000
88+++ debian/openssh-server.dirs 2010-02-08 21:39:12 +0000
89@@ -8,3 +8,4 @@
90 usr/share/lintian/overrides
91 usr/share/man/man5
92 usr/share/man/man8
93+usr/share/apport/package-hooks
94
95=== modified file 'debian/rules'
96--- debian/rules 2010-01-26 13:07:40 +0000
97+++ debian/rules 2010-02-08 21:39:12 +0000
98@@ -199,6 +199,10 @@
99 install -m 755 build-udeb/sshd debian/openssh-server-udeb/usr/sbin/sshd
100 install -m 755 build-udeb/ssh-keygen debian/openssh-server-udeb/usr/bin/ssh-keygen
101
102+ # apport hooks
103+ install -D -m 644 debian/apport/openssh-server.py debian/openssh-server/usr/share/apport/package-hooks/openssh-server.py
104+ install -D -m 644 debian/apport/openssh-client.py debian/openssh-client/usr/share/apport/package-hooks/openssh-client.py
105+
106 # Remove version control tags to avoid unnecessary conffile
107 # resolution steps for administrators.
108 sed -i '/\$$OpenBSD:/d' \

Subscribers

People subscribed via source and target branches

to all changes: