Merge lp:~gothicx/apport/active_btns_tab into lp:~apport-hackers/apport/trunk

Proposed by Marco Rodrigues
Status: Merged
Merged at revision: not available
Proposed branch: lp:~gothicx/apport/active_btns_tab
Merge into: lp:~apport-hackers/apport/trunk
Diff against target: 70 lines
3 files modified
apport/ui.py (+8/-2)
bin/apport-bug (+7/-1)
gtk/apport-gtk.ui (+2/-2)
To merge this branch: bzr merge lp:~gothicx/apport/active_btns_tab
Reviewer Review Type Date Requested Status
Martin Pitt (community) Approve
Review via email: mp+13247@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Looks good, with the -p/-P changes reverted. Please base unrelated branches off trunk, not off another branch of your's, since that introduces unnecessary dependencies.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'apport/ui.py'
2--- apport/ui.py 2009-10-12 07:07:45 +0000
3+++ apport/ui.py 2009-10-12 21:30:24 +0000
4@@ -433,6 +433,12 @@
5 return True
6 elif self.options.filebug:
7 return self.run_report_bug()
8+ elif self.options.package:
9+ print _('Usage: ubuntu-bug <package>\nThe option -p, --package <package> is deprecated, please do not use it.')
10+ return True
11+ elif self.options.pid:
12+ print _('Usage: ubuntu-bug <pid>\nThe option -P, --pid <pid> is deprecated, please do not use it.')
13+ return True
14 elif self.options.version:
15 print __version__
16 return True
17@@ -465,10 +471,10 @@
18 help=_('File a bug report about a symptom. (Implied if symptom name is given as only argument.)'),
19 dest='symptom')
20 optparser.add_option('-p', '--package',
21- help=_('Specify package name in --file-bug mode. This is optional if a --pid is specified. (Implied if package name is given as only argument.)'),
22+ help=_('Specify package name in --file-bug mode. This is optional if a --pid is specified. (Implied if package name is given as only argument.) [deprecated]'),
23 action='store', type='string', dest='package', default=None)
24 optparser.add_option('-P', '--pid',
25- help=_('Specify a running program in --file-bug mode. If this is specified, the bug report will contain more information. (Implied if pid is given as only argument.)'),
26+ help=_('Specify a running program in --file-bug mode. If this is specified, the bug report will contain more information. (Implied if pid is given as only argument.) [deprecated]'),
27 action='store', type='int', dest='pid', default=None)
28 optparser.add_option('-c', '--crash-file',
29 help=_('Report the crash from given .apport or .crash file instead of the pending ones in %s. (Implied if file is given as only argument.)') % apport.fileutils.report_dir,
30
31=== modified file 'bin/apport-bug'
32--- bin/apport-bug 2009-10-04 21:45:02 +0000
33+++ bin/apport-bug 2009-10-12 21:30:24 +0000
34@@ -40,7 +40,13 @@
35
36 find_programs
37
38-if [ "$#" -gt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
39+if [ "$1" = "-p" ] || [ "$1" = "--package" ]; then
40+ echo "Usage: ubuntu-bug <package>\nThe option -p, --package <package> is deprecated, please do not use it."
41+ exit 1
42+elif [ "$1" = "-P" ] || [ "$1" = "--pid" ]; then
43+ echo "Usage: ubuntu-bug <pid>\nThe option -P, --pid <pid> is deprecated, please do not use it."
44+ exit 1
45+elif [ "$#" -gt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
46 echo "Usage: $0 <pid>|<symptom name>|<package name>|<program path>|<.crash file>" >&2
47 exit 1
48 fi
49
50=== modified file 'gtk/apport-gtk.ui'
51--- gtk/apport-gtk.ui 2009-06-19 10:44:35 +0000
52+++ gtk/apport-gtk.ui 2009-10-12 21:30:24 +0000
53@@ -509,7 +509,7 @@
54 <object class="GtkButton" id="button4">
55 <property name="label">gtk-cancel</property>
56 <property name="visible">True</property>
57- <property name="can_focus">False</property>
58+ <property name="can_focus">True</property>
59 <property name="receives_default">False</property>
60 <property name="use_stock">True</property>
61 </object>
62@@ -523,7 +523,7 @@
63 <object class="GtkButton" id="button6">
64 <property name="label" translatable="yes">_Send Report</property>
65 <property name="visible">True</property>
66- <property name="can_focus">False</property>
67+ <property name="can_focus">True</property>
68 <property name="can_default">True</property>
69 <property name="has_default">True</property>
70 <property name="receives_default">False</property>

Subscribers

People subscribed via source and target branches