Merge lp:~vish/ubuntu/maverick/cheese/bug573124+reup into lp:ubuntu/maverick/cheese

Proposed by Vish on 2010-08-23
Status: Merged
Merge reported by: Robert Ancell
Merged at revision: not available
Proposed branch: lp:~vish/ubuntu/maverick/cheese/bug573124+reup
Merge into: lp:ubuntu/maverick/cheese
Diff against target: 235 lines (+122/-34)
4 files modified
debian/changelog (+11/-0)
debian/control (+20/-12)
debian/control.in (+20/-12)
debian/source_cheese.py (+71/-10)
To merge this branch: bzr merge lp:~vish/ubuntu/maverick/cheese/bug573124+reup
Reviewer Review Type Date Requested Status
Sebastien Bacher 2010-08-23 Pending
Review via email: mp+33419@code.launchpad.net

Description of the Change

Branch improves apport hook for cheese From Mitch Towner : Bug 573124
And re-uploads the description change that was done in cheese (2.30.1-1ubuntu2) maverick, which got lost during last update due to out-of-sync vcs.

To post a comment you must log in.

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-17 16:21:32 +0000
3+++ debian/changelog 2010-08-23 16:51:46 +0000
4@@ -1,3 +1,14 @@
5+cheese (2.31.90-0ubuntu2) maverick; urgency=low
6+
7+ * debian/control.in
8+ - Improve cheese description (lp: #604636)
9+
10+ [ Mitch Towner ]
11+ * debian/source_cheese.py:
12+ - Improve apport hook (lp: #573124)
13+
14+ -- K Vishnoo Charan Reddy <vish@ubuntu.com> Tue, 24 Aug 2010 00:21:32 +0530
15+
16 cheese (2.31.90-0ubuntu1) maverick; urgency=low
17
18 * New upstream version
19
20=== modified file 'debian/control'
21--- debian/control 2010-08-17 16:21:32 +0000
22+++ debian/control 2010-08-23 16:51:46 +0000
23@@ -46,9 +46,11 @@
24 Replaces: cheese-common (<< 2.30.1-1ubuntu1)
25 Recommends: gvfs
26 Description: A tool to take pictures and videos from your webcam
27- Cheese is a cheesy program to take pictures and videos from your web
28- cam. It also provides some graphical effects in order to please the
29- user's play instinct.
30+ A webcam application that supports image and video capture. Makes
31+ it easy to take photos and videos of you, your friends, pets or whatever
32+ you want. Allows you to apply fancy visual effects, fine-control image
33+ settings and has features such as Multi-Burst mode, Countdown timer
34+ for photos.
35
36 Package: cheese-common
37 Architecture: all
38@@ -56,9 +58,11 @@
39 Replaces: cheese (<< 2.30.1-1)
40 Conflicts: cheese (<< 2.30.1-1)
41 Description: Common files for the Cheese tool to take pictures and videos
42- Cheese is a cheesy program to take pictures and videos from your web
43- cam. It also provides some graphical effects in order to please the
44- user's play instinct.
45+ A webcam application that supports image and video capture. Makes
46+ it easy to take photos and videos of you, your friends, pets or whatever
47+ you want. Allows you to apply fancy visual effects, fine-control image
48+ settings and has features such as Multi-Burst mode, Countdown timer
49+ for photos.
50 .
51 This package contains the common files and translations.
52
53@@ -68,9 +72,11 @@
54 Depends: ${shlibs:Depends},
55 ${misc:Depends}
56 Description: A tool to take pictures and videos from your webcam - widgets
57- Cheese is a cheesy program to take pictures and videos from your web
58- cam. It also provides some graphical effects in order to please the
59- user's play instinct.
60+ A webcam application that supports image and video capture. Makes
61+ it easy to take photos and videos of you, your friends, pets or whatever
62+ you want. Allows you to apply fancy visual effects, fine-control image
63+ settings and has features such as Multi-Burst mode, Countdown timer
64+ for photos.
65 .
66 This package contains the shared library.
67
68@@ -84,8 +90,10 @@
69 ${misc:Depends},
70 ${shlibs:Depends}
71 Description: A tool to take pictures and videos from your webcam - widgets dev
72- Cheese is a cheesy program to take pictures and videos from your web
73- cam. It also provides some graphical effects in order to please the
74- user's play instinct.
75+ A webcam application that supports image and video capture. Makes
76+ it easy to take photos and videos of you, your friends, pets or whatever
77+ you want. Allows you to apply fancy visual effects, fine-control image
78+ settings and has features such as Multi-Burst mode, Countdown timer
79+ for photos.
80 .
81 This package contains the development headers and API documentation.
82
83=== modified file 'debian/control.in'
84--- debian/control.in 2010-08-17 16:21:32 +0000
85+++ debian/control.in 2010-08-23 16:51:46 +0000
86@@ -41,9 +41,11 @@
87 Replaces: cheese-common (<< 2.30.1-1ubuntu1)
88 Recommends: gvfs
89 Description: A tool to take pictures and videos from your webcam
90- Cheese is a cheesy program to take pictures and videos from your web
91- cam. It also provides some graphical effects in order to please the
92- user's play instinct.
93+ A webcam application that supports image and video capture. Makes
94+ it easy to take photos and videos of you, your friends, pets or whatever
95+ you want. Allows you to apply fancy visual effects, fine-control image
96+ settings and has features such as Multi-Burst mode, Countdown timer
97+ for photos.
98
99 Package: cheese-common
100 Architecture: all
101@@ -51,9 +53,11 @@
102 Replaces: cheese (<< 2.30.1-1)
103 Conflicts: cheese (<< 2.30.1-1)
104 Description: Common files for the Cheese tool to take pictures and videos
105- Cheese is a cheesy program to take pictures and videos from your web
106- cam. It also provides some graphical effects in order to please the
107- user's play instinct.
108+ A webcam application that supports image and video capture. Makes
109+ it easy to take photos and videos of you, your friends, pets or whatever
110+ you want. Allows you to apply fancy visual effects, fine-control image
111+ settings and has features such as Multi-Burst mode, Countdown timer
112+ for photos.
113 .
114 This package contains the common files and translations.
115
116@@ -63,9 +67,11 @@
117 Depends: ${shlibs:Depends},
118 ${misc:Depends}
119 Description: A tool to take pictures and videos from your webcam - widgets
120- Cheese is a cheesy program to take pictures and videos from your web
121- cam. It also provides some graphical effects in order to please the
122- user's play instinct.
123+ A webcam application that supports image and video capture. Makes
124+ it easy to take photos and videos of you, your friends, pets or whatever
125+ you want. Allows you to apply fancy visual effects, fine-control image
126+ settings and has features such as Multi-Burst mode, Countdown timer
127+ for photos.
128 .
129 This package contains the shared library.
130
131@@ -79,8 +85,10 @@
132 ${misc:Depends},
133 ${shlibs:Depends}
134 Description: A tool to take pictures and videos from your webcam - widgets dev
135- Cheese is a cheesy program to take pictures and videos from your web
136- cam. It also provides some graphical effects in order to please the
137- user's play instinct.
138+ A webcam application that supports image and video capture. Makes
139+ it easy to take photos and videos of you, your friends, pets or whatever
140+ you want. Allows you to apply fancy visual effects, fine-control image
141+ settings and has features such as Multi-Burst mode, Countdown timer
142+ for photos.
143 .
144 This package contains the development headers and API documentation.
145
146=== modified file 'debian/source_cheese.py'
147--- debian/source_cheese.py 2010-04-12 20:00:53 +0000
148+++ debian/source_cheese.py 2010-08-23 16:51:46 +0000
149@@ -1,15 +1,76 @@
150 import os
151 import subprocess
152-
153 import apport.packaging
154 import apport.hookutils
155+
156+HOME = os.path.expanduser("~")
157+
158 def add_info(report, ui):
159- response = ui.choice("How would you describe the issue?", ["Cheese does not detect webcam or image not displayed properly", "Other problem"], False)
160- if response == None: # user cancelled
161- raise StopIteration
162- if response[0] == 0: # attach debug information
163- ui.information("If Cheese is running, please close Cheese. Cheese will run again in debug mode. Please wait till you see a video or an error message before closing cheese")
164- report["CheeseDebug.log"] = apport.hookutils.command_output(['env', 'GST_DEBUG=*cheese*:3', 'cheese', '-v'])
165- apport.hookutils.attach_hardware(report)
166- report["GstreamerVersions"] = apport.hookutils.package_versions("gstreamer*")
167- report["XorgLog"] = apport.hookutils.read_file("/var/log/Xorg.0.log")
168+ add_tags = []
169+
170+ response = ui.information("Before continuing, please close Cheese if it is already running!\n\nCheese will now be started in debugging mode.\n\nTry to reproduce the problem you are facing\nand 'Close' Cheese.")
171+ ## run cheese in debug mode all the bugs need this!
172+ os.popen("env GST_DEBUG=*cheese*:3 cheese -v 2>&1 | tee /dev/tty >>~/.cache/CheeseDebug.txt")
173+
174+ report['CheeseDebug.txt'] = ('.cache/CheeseDebug.txt', False)
175+ report['lspci'] = command_output(['lspci', '-vvnn'])
176+ report['lsusb'] = command_output(['lsusb'])
177+
178+ attach_related_packages(report, [
179+ "cheese",
180+ "cheese-common"
181+ ])
182+
183+ ## Clear the screen to keep things tidy
184+ os.system("clear")
185+
186+ response = ui.choice("How would you describe the problem you are facing?", ["Cheese does not work properly", "The webcam image displayed has problems"], False)
187+
188+ if response == None: ## user cancelled
189+ raise StopIteration
190+ if response[0] == 1: ## the image problems are usually due to bad drivers,so we test direct video input from gstreamer to rule out cheese error
191+ response = ui.information("A video image will now be displayed directly from your webcam.\n\nPlease observe if it has the same image problems\nand 'Close' the window.")
192+ ## run gstreamer,will auto detect the src and display the webcam input
193+ os.popen("gst-launch-0.10 autovideosrc ! ffmpegcolorspace ! autovideosink")
194+
195+ response = ui.choice("Did you notice the same image problem in the test video?", ["Yes", "No"], False)
196+
197+ if response == None: ## user cancelled
198+ raise StopIteration
199+
200+ if response[0] == 0: ## the issue is mostly related to bad drivers and not cheese!
201+ add_tags.append('gstreamer-error')
202+
203+ if response[0] == 1: ## the video input works fine, cheese is messing up the video!
204+ add_tags.append('gstreamer-ok')
205+
206+ dmi_dir = '/sys/class/dmi/id'
207+ if os.path.isdir(dmi_dir):
208+ for f in os.listdir(dmi_dir):
209+ p = '%s/%s' % (dmi_dir, f)
210+ st = os.stat(p)
211+ ## ignore the root-only ones, since they have serial numbers
212+ if not stat.S_ISREG(st.st_mode) or (st.st_mode & 4 == 0):
213+ continue
214+ if f in ('subsystem', 'uevent', 'chassis_asset_tag'):
215+ continue
216+
217+ try:
218+ value = open(p).read().strip()
219+ except (OSError, IOError):
220+ continue
221+ if value:
222+ report['dmi.' + f.replace('_', '.')] = value
223+
224+ ## Use the hardware information to create a machine type.
225+ if 'dmi.sys.vendor' in report and 'dmi.product.name' in report:
226+ report['MachineType'] = '%s %s' % (report['dmi.sys.vendor'],
227+ report['dmi.product.name'])
228+
229+ attach_file(report, '/proc/cpuinfo', 'ProcCpuinfo')
230+
231+ if add_tags:
232+ if 'Tags' in report:
233+ report['Tags'] += ' ' + ' '.join(add_tags)
234+ else:
235+ report['Tags'] = ' '.join(add_tags)

Subscribers

People subscribed via source and target branches

to all changes: