rpms/system-config-printer/F-12 system-config-printer-raw-statereason.patch, NONE, 1.1 system-config-printer.spec, 1.352, 1.353

Tim Waugh twaugh at fedoraproject.org
Sun Jan 24 11:59:00 UTC 2010


Author: twaugh

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

Modified Files:
	system-config-printer.spec 
Added Files:
	system-config-printer-raw-statereason.patch 
Log Message:
* Sun Jan 24 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-12
- Fixed statereason localization for raw queues (bug #558156).


system-config-printer-raw-statereason.patch:
 statereason.py |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

--- NEW FILE system-config-printer-raw-statereason.patch ---
diff -up system-config-printer-1.1.16/statereason.py.raw-statereason system-config-printer-1.1.16/statereason.py
--- system-config-printer-1.1.16/statereason.py.raw-statereason	2010-01-24 11:39:59.564183236 +0000
+++ system-config-printer-1.1.16/statereason.py	2010-01-24 11:40:09.827308551 +0000
@@ -137,6 +137,7 @@ class StateReason:
                 except (cups.IPPError, OSError):
                     pass
 
+            reason = self.get_reason ()
             if self._ppd:
                 try:
                     schemes = ["text", "http", "help", "file"]
@@ -148,10 +149,8 @@ class StateReason:
                             localized_reason = localized_reason + reason + ", "
                     if localized_reason != "":
                         reason = localized_reason[:-2]
-                    else:
-                        reason = self.get_reason()
                 except RuntimeError:
-                    reason = self.get_reason()
+                    pass
 
             text = _("Printer '%s': '%s'.") % (self.get_printer (), reason)
         return (title, text)


Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/F-12/system-config-printer.spec,v
retrieving revision 1.352
retrieving revision 1.353
diff -u -p -r1.352 -r1.353
--- system-config-printer.spec	24 Jan 2010 11:39:47 -0000	1.352
+++ system-config-printer.spec	24 Jan 2010 11:59:00 -0000	1.353
@@ -33,6 +33,7 @@ Patch15: system-config-printer-serial-wi
 Patch16: system-config-printer-statereason-tmp.patch
 Patch17: system-config-printer-asyncpk0-fallback.patch
 Patch18: system-config-printer-async-fallback-2.patch
+Patch19: system-config-printer-raw-statereason.patch
 
 BuildRequires: cups-devel >= 1.2
 BuildRequires: python-devel >= 2.4
@@ -110,6 +111,7 @@ printers.
 %patch16 -p1 -b .statereason-tmp
 %patch17 -p1 -b .asyncpk0-fallback
 %patch18 -p1 -b .async-fallback-2
+%patch19 -p1 -b .raw-statereason
 
 %build
 %configure --with-udev-rules --with-polkit-1
@@ -227,6 +229,7 @@ exit 0
 
 %changelog
 * Sun Jan 24 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-12
+- Fixed statereason localization for raw queues (bug #558156).
 - Fixed async fallback again (bug #557854).
 
 * Fri Jan 22 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-11



More information about the scm-commits mailing list