diff -u cheese-2.30.0/debian/cheese-common.install cheese-2.30.0/debian/cheese-common.install --- cheese-2.30.0/debian/cheese-common.install +++ cheese-2.30.0/debian/cheese-common.install @@ -8,0 +9 @@ +debian/source_cheese.py usr/share/apport/package-hooks diff -u cheese-2.30.0/debian/changelog cheese-2.30.0/debian/changelog --- cheese-2.30.0/debian/changelog +++ cheese-2.30.0/debian/changelog @@ -1,3 +1,12 @@ +cheese (2.30.0-0ubuntu2) karmic; urgency=low + + * debian/source_cheese.py: + - Apport hook for cheese (lp: #542091) + * debian/cheese-common.install: + - Ship the new apport hook. + + -- Nigel Babu Mon, 12 Apr 2010 20:00:53 +0530 + cheese (2.30.0-0ubuntu1) lucid; urgency=low * New upstream version: only in patch2: unchanged: --- cheese-2.30.0.orig/debian/source_cheese.py +++ cheese-2.30.0/debian/source_cheese.py @@ -0,0 +1,15 @@ +import os +import subprocess + +import apport.packaging +import apport.hookutils +def add_info(report, ui): + response = ui.choice("How would you describe the issue?", ["Cheese does not detect webcam or image not displayed properly", "Other problem"], False) + if response == None: # user cancelled + raise StopIteration + if response[0] == 0: # attach debug information + 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") + report["CheeseDebug.log"] = apport.hookutils.command_output(['env', 'GST_DEBUG=*cheese*:3', 'cheese', '-v']) + apport.hookutils.attach_hardware(report) + report["GstreamerVersions"] = apport.hookutils.package_versions("gstreamer*") + report["XorgLog"] = apport.hookutils.read_file("/var/log/Xorg.0.log")