rpms/system-config-printer/F-13 system-config-printer-cdi-filename.patch, NONE, 1.1 system-config-printer.spec, 1.373, 1.374
Tim Waugh
twaugh at fedoraproject.org
Fri Mar 19 12:59:15 UTC 2010
Author: twaugh
Update of /cvs/pkgs/rpms/system-config-printer/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv10197
Modified Files:
system-config-printer.spec
Added Files:
system-config-printer-cdi-filename.patch
Log Message:
* Fri Mar 19 2010 Tim Waugh <twaugh at redhat.com> - 1.2.0-4
- check-device-ids.py: Fixed driver-URI to filename mapping.
system-config-printer-cdi-filename.patch:
check-device-ids.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
--- NEW FILE system-config-printer-cdi-filename.patch ---
diff -up system-config-printer-1.2.0/check-device-ids.py.cdi-filename system-config-printer-1.2.0/check-device-ids.py
--- system-config-printer-1.2.0/check-device-ids.py.cdi-filename 2010-03-19 12:39:49.195620887 +0000
+++ system-config-printer-1.2.0/check-device-ids.py 2010-03-19 12:40:09.012748969 +0000
@@ -115,16 +115,13 @@ makes = ppds.getMakes ()
def driver_uri_to_filename (uri):
schemeparts = uri.split (':', 2)
- if len (schemeparts) < 1:
+ if len (schemeparts) < 2:
return "/usr/share/cups/model/" + uri
scheme = schemeparts[0]
if scheme != "drv":
return "/usr/lib/cups/driver/" + scheme
- if len (schemeparts) < 2:
- return ""
-
rest = schemeparts[1]
rest = rest.lstrip ('/')
parts = rest.split ('/')
Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/F-13/system-config-printer.spec,v
retrieving revision 1.373
retrieving revision 1.374
diff -u -p -r1.373 -r1.374
--- system-config-printer.spec 19 Mar 2010 11:51:31 -0000 1.373
+++ system-config-printer.spec 19 Mar 2010 12:59:13 -0000 1.374
@@ -7,7 +7,7 @@
Summary: A printer administration tool
Name: system-config-printer
Version: 1.2.0
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv2+
URL: http://cyberelk.net/tim/software/system-config-printer/
Group: System Environment/Base
@@ -22,6 +22,7 @@ Patch2: system-config-printer-lowercase-
Patch3: system-config-printer-cdi-no-drivers.patch
Patch4: system-config-printer-cdi-cmd.patch
Patch5: system-config-printer-kyocera-mita.patch
+Patch6: system-config-printer-cdi-filename.patch
BuildRequires: cups-devel >= 1.2
BuildRequires: python-devel >= 2.4
@@ -96,6 +97,9 @@ printers.
# The canonical name for Kyocera is Kyocera Mita.
%patch5 -p1 -b .kyocera-mita
+# check-device-ids.py: Fixed driver-URI to filename mapping.
+%patch6 -p1 -b .cdi-filename
+
%build
%configure --with-udev-rules
@@ -211,6 +215,9 @@ rm -rf %buildroot
exit 0
%changelog
+* Fri Mar 19 2010 Tim Waugh <twaugh at redhat.com> - 1.2.0-4
+- check-device-ids.py: Fixed driver-URI to filename mapping.
+
* Fri Mar 19 2010 Tim Waugh <twaugh at redhat.com> - 1.2.0-3
- The canonical name for Kyocera is Kyocera Mita.
- Show CMD field in check-device-ids.py.
More information about the scm-commits
mailing list