rpms/system-config-printer/devel system-config-printer-short-lived-states.patch, NONE, 1.1 system-config-printer.spec, 1.320, 1.321

Tim Waugh twaugh at fedoraproject.org
Wed Dec 9 10:57:04 UTC 2009


Author: twaugh

Update of /cvs/pkgs/rpms/system-config-printer/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19131

Modified Files:
	system-config-printer.spec 
Added Files:
	system-config-printer-short-lived-states.patch 
Log Message:
* Wed Dec  9 2009 Tim Waugh <twaugh at redhat.com> - 1.1.15-7
- Fixed jobviewer traceback with short-lived state reasons (bug #545733).


system-config-printer-short-lived-states.patch:
 jobviewer.py |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

--- NEW FILE system-config-printer-short-lived-states.patch ---
diff -up system-config-printer-1.1.15/jobviewer.py.short-lived-states system-config-printer-1.1.15/jobviewer.py
--- system-config-printer-1.1.15/jobviewer.py.short-lived-states	2009-11-30 12:43:08.000000000 +0000
+++ system-config-printer-1.1.15/jobviewer.py	2009-12-09 10:53:20.936016882 +0000
@@ -1430,7 +1430,13 @@ class JobViewer (GtkGUI, monitor.Watcher
         try:
             notification = self.state_reason_notifications[tuple]
             if notification.get_data ('closed') != True:
-                notification.close ()
+                try:
+                    notification.close ()
+                except glib.GError:
+                    # Can fail if the notification wasn't even shown
+                    # yet (as in bug #545733).
+                    pass
+
             del self.state_reason_notifications[tuple]
             self.set_statusicon_visibility ()
         except KeyError:


Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/devel/system-config-printer.spec,v
retrieving revision 1.320
retrieving revision 1.321
diff -u -p -r1.320 -r1.321
--- system-config-printer.spec	8 Dec 2009 14:04:31 -0000	1.320
+++ system-config-printer.spec	9 Dec 2009 10:57:04 -0000	1.321
@@ -7,7 +7,7 @@
 Summary: A printer administration tool
 Name: system-config-printer
 Version: 1.1.15
-Release: 6%{?dist}
+Release: 7%{?dist}
 License: GPLv2+
 URL: http://cyberelk.net/tim/software/system-config-printer/
 Group: System Environment/Base
@@ -21,6 +21,7 @@ Patch3: system-config-printer-browsepoll
 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
 
 BuildRequires: cups-devel >= 1.2
 BuildRequires: python-devel >= 2.4
@@ -86,6 +87,7 @@ printers.
 %patch4 -p1 -b .cupsd.conf-parser
 %patch5 -p1 -b .troubleshooter-traceback
 %patch6 -p1 -b .lpd-uri
+%patch7 -p1 -b .short-lived-states
 
 %build
 %configure --with-udev-rules --with-polkit-1
@@ -198,6 +200,9 @@ rm -rf %buildroot
 exit 0
 
 %changelog
+* Wed Dec  9 2009 Tim Waugh <twaugh at redhat.com> - 1.1.15-7
+- Fixed jobviewer traceback with short-lived state reasons (bug #545733).
+
 * Tue Dec  8 2009 Tim Waugh <twaugh at redhat.com> - 1.1.15-6
 - Fixed traceback with short lpd device URIs (bug #545397).
 




More information about the fedora-extras-commits mailing list