rpms/system-config-printer/F-11 system-config-printer-lpd-uri.patch, NONE, 1.1 system-config-printer.spec, 1.313, 1.314

Tim Waugh twaugh at fedoraproject.org
Tue Dec 8 14:02:02 UTC 2009


Author: twaugh

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

Modified Files:
	system-config-printer.spec 
Added Files:
	system-config-printer-lpd-uri.patch 
Log Message:
* Tue Dec  8 2009 Tim Waugh <twaugh at redhat.com> - 1.1.15-6
- Fixed traceback with short lpd device URIs (bug #545397).


system-config-printer-lpd-uri.patch:
 system-config-printer.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- NEW FILE system-config-printer-lpd-uri.patch ---
diff -up system-config-printer-1.1.15/system-config-printer.py.lpd-uri system-config-printer-1.1.15/system-config-printer.py
--- system-config-printer-1.1.15/system-config-printer.py.lpd-uri	2009-12-08 14:00:31.646480878 +0000
+++ system-config-printer-1.1.15/system-config-printer.py	2009-12-08 14:00:35.027606138 +0000
@@ -5767,10 +5767,10 @@ class NewPrinterGUI(GtkGUI):
                 (scheme, rest) = urllib.splittype (device.uri)
                 (hostport, rest) = urllib.splithost (rest)
                 (queue, rest) = urllib.splitquery (rest)
-                if queue[0] == '/':
-                    queue = queue[1:]
-
                 if queue != '':
+                    if queue[0] == '/':
+                        queue = queue[1:]
+
                     device.menuentry = _("LPD/LPR queue '%s'") % queue
                 else:
                     device.menuentry = _("LPD/LPR queue")


Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/F-11/system-config-printer.spec,v
retrieving revision 1.313
retrieving revision 1.314
diff -u -p -r1.313 -r1.314
--- system-config-printer.spec	7 Dec 2009 17:37:49 -0000	1.313
+++ system-config-printer.spec	8 Dec 2009 14:02:02 -0000	1.314
@@ -7,7 +7,7 @@
 Summary: A printer administration tool
 Name: system-config-printer
 Version: 1.1.15
-Release: 5%{?dist}
+Release: 6%{?dist}
 License: GPLv2+
 URL: http://cyberelk.net/tim/software/system-config-printer/
 Group: System Environment/Base
@@ -19,6 +19,7 @@ Patch1: system-config-printer-localize-s
 Patch2: system-config-printer-browsepoll.patch
 Patch3: system-config-printer-cupsd.conf-parser.patch
 Patch4: system-config-printer-troubleshooter-traceback.patch
+Patch5: system-config-printer-lpd-uri.patch
 
 BuildRequires: cups-devel >= 1.2
 BuildRequires: python-devel >= 2.4
@@ -71,6 +72,7 @@ the configuration tool.
 %patch2 -p1 -b .browsepoll
 %patch3 -p1 -b .cupsd.conf-parser
 %patch4 -p1 -b .troubleshooter-traceback
+%patch5 -p1 -b .lpd-uri
 
 %build
 %configure
@@ -173,6 +175,9 @@ rm -rf %buildroot
 exit 0
 
 %changelog
+* Tue Dec  8 2009 Tim Waugh <twaugh at redhat.com> - 1.1.15-6
+- Fixed traceback with short lpd device URIs (bug #545397).
+
 * Mon Dec  7 2009 Tim Waugh <twaugh at redhat.com> - 1.1.15-5
 - Fixed traceback when troubleshooter operation is cancelled (bug #544356).
 




More information about the fedora-extras-commits mailing list