From 3bb63b58115b258dc36e8102cef600e558f63886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Popelka?= Date: Mon, 14 Dec 2009 17:10:11 +0000 Subject: [PATCH] - Prevent traceback when cancel button in troubleshooter pressed (#546821). --- ...g-printer-troubleshooter-debugcancel.patch | 21 +++++++++++++++++++ system-config-printer.spec | 7 ++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 system-config-printer-troubleshooter-debugcancel.patch diff --git a/system-config-printer-troubleshooter-debugcancel.patch b/system-config-printer-troubleshooter-debugcancel.patch new file mode 100644 index 0000000..813bf11 --- /dev/null +++ b/system-config-printer-troubleshooter-debugcancel.patch @@ -0,0 +1,21 @@ +diff -up system-config-printer-1.1.15/troubleshoot/ErrorLogCheckpoint.py.debugcancel system-config-printer-1.1.15/troubleshoot/ErrorLogCheckpoint.py +--- system-config-printer-1.1.15/troubleshoot/ErrorLogCheckpoint.py.debugcancel 2009-09-01 13:08:33.000000000 +0200 ++++ system-config-printer-1.1.15/troubleshoot/ErrorLogCheckpoint.py 2009-12-14 17:16:32.000000000 +0100 +@@ -23,7 +23,7 @@ import cups + import os + import tempfile + import time +-from timedops import TimedOperation ++from timedops import TimedOperation, OperationCanceled + from base import * + class ErrorLogCheckpoint(Question): + def __init__ (self, troubleshooter): +@@ -162,7 +162,7 @@ class ErrorLogCheckpoint(Question): + self.op = TimedOperation (self.authconn.adminGetServerSettings, + parent=parent) + settings = self.op.run () +- except cups.IPPError: ++ except (cups.IPPError, OperationCanceled): + self.troubleshooter.ready () + self.forward_allowed = True + handler (button) diff --git a/system-config-printer.spec b/system-config-printer.spec index 2ae314a..4468f05 100644 --- a/system-config-printer.spec +++ b/system-config-printer.spec @@ -7,7 +7,7 @@ Summary: A printer administration tool Name: system-config-printer Version: 1.1.15 -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv2+ URL: http://cyberelk.net/tim/software/system-config-printer/ Group: System Environment/Base @@ -22,6 +22,7 @@ Patch4: system-config-printer-cupsd.conf-parser.patch Patch5: system-config-printer-troubleshooter-traceback.patch Patch6: system-config-printer-lpd-uri.patch Patch7: system-config-printer-short-lived-states.patch +Patch8: system-config-printer-troubleshooter-debugcancel.patch BuildRequires: cups-devel >= 1.2 BuildRequires: python-devel >= 2.4 @@ -88,6 +89,7 @@ printers. %patch5 -p1 -b .troubleshooter-traceback %patch6 -p1 -b .lpd-uri %patch7 -p1 -b .short-lived-states +%patch8 -p1 -b .troubleshooter-debugcancel %build %configure --with-udev-rules --with-polkit-1 @@ -200,6 +202,9 @@ rm -rf %buildroot exit 0 %changelog +* Mon Dec 14 2009 Jiri Popelka 1.1.15-8 +- Prevent traceback when cancel button in troubleshooter pressed (#546821). + * Wed Dec 9 2009 Tim Waugh - 1.1.15-7 - Fixed jobviewer traceback with short-lived state reasons (bug #545733).