Merge lp:~ev/apport/drop-apport-noui into lp:~apport-hackers/apport/trunk

Proposed by Evan
Status: Merged
Approved by: Martin Pitt
Approved revision: 2686
Merged at revision: 2686
Proposed branch: lp:~ev/apport/drop-apport-noui
Merge into: lp:~apport-hackers/apport/trunk
Diff against target: 116 lines (+5/-78)
3 files modified
NEWS (+3/-0)
bin/apport-bug (+2/-2)
data/apport-noui (+0/-76)
To merge this branch: bzr merge lp:~ev/apport/drop-apport-noui
Reviewer Review Type Date Requested Status
Martin Pitt (community) Approve
Review via email: mp+180824@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'NEWS'
2--- NEWS 2013-08-02 14:02:44 +0000
3+++ NEWS 2013-08-19 10:13:27 +0000
4@@ -9,6 +9,9 @@
5 don't have Contents.gz).
6 * Robustify "progress bar visible" GTK and KDE UI checks for the faster
7 collection due to dropping lsb_release.
8+ * Drop apport-noui in favour of whoopsie-upload-all. We don't want to process
9+ hooks when run noninteractively, since they may ask questions or determine a
10+ report is not due to a bug in Ubuntu. whoopsie-upload-all skips these hooks.
11
12 2.12 (2013-08-02)
13 -----------------
14
15=== modified file 'bin/apport-bug'
16--- bin/apport-bug 2013-07-17 07:23:06 +0000
17+++ bin/apport-bug 2013-08-19 10:13:27 +0000
18@@ -30,7 +30,7 @@
19 GTK="$RET"
20 find_program "apport-kde"
21 KDE="$RET"
22- find_program "apport-noui"
23+ find_program "whoopsie-upload-all"
24 AUTO="$RET"
25
26 # find a terminal emulator
27@@ -77,7 +77,7 @@
28 fi
29
30 else
31- echo "Neither apport-gtk, apport-kde, apport-cli, or apport-noui are installed. Install either to make this program work." >&2
32+ echo "Neither apport-gtk, apport-kde, apport-cli, or whoopsie-upload-all are installed. Install either to make this program work." >&2
33 exit 1
34 fi
35
36
37=== removed file 'data/apport-noui'
38--- data/apport-noui 2013-07-15 13:16:49 +0000
39+++ data/apport-noui 1970-01-01 00:00:00 +0000
40@@ -1,76 +0,0 @@
41-#!/usr/bin/python
42-
43-'''Noninteractive reporting Apport user interface.'''
44-
45-# Copyright (C) 2013 Canonical Ltd.
46-# Author: Evan Dandrea <evan.dandrea@canonical.com>
47-#
48-# This program is free software; you can redistribute it and/or modify it
49-# under the terms of the GNU General Public License as published by the
50-# Free Software Foundation; either version 2 of the License, or (at your
51-# option) any later version. See http://www.gnu.org/copyleft/gpl.html for
52-# the full text of the license.
53-
54-import apport
55-import apport.ui
56-
57-
58-class NoninteractiveUserInterface(apport.ui.UserInterface):
59- '''Noninteractive UserInterface.'''
60-
61- #
62- # ui_* implementation of abstract UserInterface classes
63- #
64-
65- def ui_present_report_details(self, allowed_to_report=True, modal_for=None):
66- return_value = {'report': True, 'blacklist': False,
67- 'restart': False, 'examine': False}
68- return return_value
69-
70- def ui_info_message(self, title, text):
71- apport.log('Noninteractive reporting: %s: %s' % (title, text))
72-
73- def ui_error_message(self, title, text):
74- apport.log('Noninteractive reporting: %s: %s' % (title, text))
75-
76- def ui_start_upload_progress(self):
77- return
78-
79- def ui_set_upload_progress(self, progress):
80- return
81-
82- def ui_stop_upload_progress(self):
83- return
84-
85- def ui_start_info_collection_progress(self):
86- return
87-
88- def ui_pulse_info_collection_progress(self):
89- return
90-
91- def ui_stop_info_collection_progress(self):
92- return
93-
94- def ui_question_yesno(self, text):
95- '''Respond 'No' to any questions, as the user has not had the
96- opportunity to review the question.
97- '''
98- return False
99-
100- def ui_question_choice(self, text, options, multiple):
101- '''Respond with no selection to any multiple choice questions, as the
102- user has not had the opportunity to review them.
103- '''
104- return None
105-
106- def ui_question_file(self, text):
107- '''Show a file selector dialog.
108-
109- Return path if the user selected a file, or None if cancelled.
110- '''
111- return None
112-
113-
114-if __name__ == '__main__':
115- app = NoninteractiveUserInterface()
116- app.run_argv()

Subscribers

People subscribed via source and target branches