Add the patch.
This commit is contained in:
parent
6f1a5cd731
commit
43adcf4932
17
system-config-printer-cdi-lsb-paths.patch
Normal file
17
system-config-printer-cdi-lsb-paths.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff -up system-config-printer-1.2.0/check-device-ids.py.cdi-lsb-paths system-config-printer-1.2.0/check-device-ids.py
|
||||||
|
--- system-config-printer-1.2.0/check-device-ids.py.cdi-lsb-paths 2010-03-25 17:06:01.198242692 +0000
|
||||||
|
+++ system-config-printer-1.2.0/check-device-ids.py 2010-03-25 17:07:10.914359770 +0000
|
||||||
|
@@ -116,6 +116,13 @@ makes = ppds.getMakes ()
|
||||||
|
def driver_uri_to_filename (uri):
|
||||||
|
schemeparts = uri.split (':', 2)
|
||||||
|
if len (schemeparts) < 2:
|
||||||
|
+ if uri.startswith ("lsb/usr/"):
|
||||||
|
+ return "/usr/share/ppd/" + uri[8:]
|
||||||
|
+ elif uri.startswith ("lsb/opt/"):
|
||||||
|
+ return "/opt/share/ppd/" + uri[8:]
|
||||||
|
+ elif uri.startswith ("lsb/local/"):
|
||||||
|
+ return "/usr/local/share/ppd/" + uri[10:]
|
||||||
|
+
|
||||||
|
return "/usr/share/cups/model/" + uri
|
||||||
|
|
||||||
|
scheme = schemeparts[0]
|
@ -7,7 +7,7 @@
|
|||||||
Summary: A printer administration tool
|
Summary: A printer administration tool
|
||||||
Name: system-config-printer
|
Name: system-config-printer
|
||||||
Version: 1.2.0
|
Version: 1.2.0
|
||||||
Release: 9%{?dist}
|
Release: 9.1%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://cyberelk.net/tim/software/system-config-printer/
|
URL: http://cyberelk.net/tim/software/system-config-printer/
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -252,7 +252,7 @@ rm -rf %buildroot
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Mar 25 2010 Tim Waugh <twaugh@redhat.com> - 1.2.0-9
|
* Thu Mar 25 2010 Tim Waugh <twaugh@redhat.com> - 1.2.0-9.1
|
||||||
- check-device-ids: use correct paths for LSB model URIs.
|
- check-device-ids: use correct paths for LSB model URIs.
|
||||||
- Fixed cdi-search-harder patch.
|
- Fixed cdi-search-harder patch.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user