Merge lp:~yofel/ubuntu/maverick/samba/lp-623798 into lp:ubuntu/maverick/samba

Proposed by Philip Muškovac
Status: Merged
Merge reported by: Mathias Gug
Merged at revision: not available
Proposed branch: lp:~yofel/ubuntu/maverick/samba/lp-623798
Merge into: lp:ubuntu/maverick/samba
Diff against target: 44 lines (+9/-3)
2 files modified
debian/changelog (+6/-0)
debian/source_samba.py (+3/-3)
To merge this branch: bzr merge lp:~yofel/ubuntu/maverick/samba/lp-623798
Reviewer Review Type Date Requested Status
Mathias Gug Approve
Review via email: mp+34363@code.launchpad.net

Description of the change

Fix a typo in the apport hook that causes it to crash when choosing 'others' for the client question:

*** Which clients are failing to connect?

Choices:
  1: Windows
  2: Ubuntu
  3: Both
  4: Other
  C: Cancel
Please choose (1/2/3/4/C):4
hook /usr/share/apport/package-hooks//source_samba.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport/report.py", line 636, in add_hooks_info
    symb['add_info'](self, ui)
  File "/usr/share/apport/package-hooks//source_samba.py", line 95, in add_info
    if repsonse[0] == 3:
NameError: global name 'repsonse' is not defined

To post a comment you must log in.
Revision history for this message
Mathias Gug (mathiaz) wrote :

Thanks. I've updated the diff against the latest version of the samba package in maverick and uploaded it to maverick.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-08-16 15:09:30 +0000
3+++ debian/changelog 2010-09-01 23:04:50 +0000
4@@ -1,3 +1,9 @@
5+samba (2:3.5.4~dfsg-1ubuntu4) maverick; urgency=low
6+
7+ * Fix typo in apport hook (LP: #623798)
8+
9+ -- Philip Muskovac <yofel@gmx.net> Thu, 02 Sep 2010 00:59:56 +0200
10+
11 samba (2:3.5.4~dfsg-1ubuntu3) maverick; urgency=low
12
13 * Add the translation of Unix Error code -ENOTSUP to NT Error Code
14
15=== modified file 'debian/source_samba.py'
16--- debian/source_samba.py 2010-06-07 19:06:51 +0000
17+++ debian/source_samba.py 2010-09-01 23:04:50 +0000
18@@ -71,7 +71,7 @@
19 ui.information("As a part of the bug reporting process, you'll be asked as series of questions to help provide a more descriptive bug report. Please answer the following questions to the best of your abilities. Afterwards, a browser will be opened to finish filing this as a bug in the Launchpad bug tracking system.")
20
21 response = ui.choice("How would you best describe your setup?", ["I am running a Windows File Server.", "I am connecting to a Windows File Server."], False)
22-
23+
24 if response == None:
25 raise StopIteration # user has canceled
26 elif response[0] == 0: #its a server
27@@ -82,7 +82,7 @@
28 report['SambaServerRegression'] = "No"
29 if response == True:
30 report['SambaServerRegression'] = 'Yes'
31-
32+
33 response = ui.choice("Which clients are failing to connect?", ["Windows", "Ubuntu", "Both", "Other"], False)
34 if response == None:
35 raise StopIteration # user has canceled
36@@ -92,7 +92,7 @@
37 report['WindowsFailedConnect'] = 'Yes'
38 if response[0] == 2:
39 report['BothFailedConnect'] = 'Yes'
40- if repsonse[0] == 3:
41+ if response[0] == 3:
42 report['OtherFailedconnect'] = 'Yes'
43
44 response = ui.yesno("The contents of your /etc/samba/smb.conf 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?")

Subscribers

People subscribed via source and target branches

to all changes: