- Prevent traceback when cancel button in troubleshooter pressed (#546821).

This commit is contained in:
Jiří Popelka 2009-12-14 17:10:11 +00:00
parent b7e13a1e7a
commit 3bb63b5811
2 changed files with 27 additions and 1 deletions

View File

@ -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)

View File

@ -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 <jpopelka@redhat.com> 1.1.15-8
- Prevent traceback when cancel button in troubleshooter pressed (#546821).
* Wed Dec 9 2009 Tim Waugh <twaugh@redhat.com> - 1.1.15-7
- Fixed jobviewer traceback with short-lived state reasons (bug #545733).