rpms/system-config-printer/devel system-config-printer-cdi-search-harder.patch, NONE, 1.1 system-config-printer.spec, 1.378, 1.379
Tim Waugh
twaugh at fedoraproject.org
Thu Mar 25 16:37:15 UTC 2010
Author: twaugh
Update of /cvs/pkgs/rpms/system-config-printer/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv3349
Modified Files:
system-config-printer.spec
Added Files:
system-config-printer-cdi-search-harder.patch
Log Message:
* Thu Mar 25 2010 Tim Waugh <twaugh at redhat.com> - 1.2.0-8
- check-device-ids: search harder for missing Device IDs.
system-config-printer-cdi-search-harder.patch:
check-device-ids.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
--- NEW FILE system-config-printer-cdi-search-harder.patch ---
diff -up system-config-printer-1.2.0/check-device-ids.py.cdi-search-harder system-config-printer-1.2.0/check-device-ids.py
--- system-config-printer-1.2.0/check-device-ids.py.cdi-search-harder 2010-03-25 16:33:07.312234926 +0000
+++ system-config-printer-1.2.0/check-device-ids.py 2010-03-25 16:33:07.409361225 +0000
@@ -195,6 +195,7 @@ for device, attrs in devices.iteritems (
print "%s (No drivers)" % more
(mfr, mdl) = ppdMakeModelSplit (make_and_model)
+ matches = set (ppds.getInfoFromModel (mfr, mdl))
mfrl = mfr.lower ()
mdls = None
for make in makes:
@@ -204,9 +205,10 @@ for device, attrs in devices.iteritems (
if mdls:
(s, bestmatches) = ppds._findBestMatchPPDs (mdls, id_fields['MDL'])
if s == ppds.STATUS_SUCCESS:
- missing = set (bestmatches) - set (drivers)
- for each in missing:
- print "%s MISSING %s [%s]" % (more, each,
- driver_uri_to_pkg (each))
+ matches += set (bestmatches)
+
+ missing = set (matches) - set (drivers)
+ for each in missing:
+ print "%s MISSING %s" % (more, each)
i += 1
Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/devel/system-config-printer.spec,v
retrieving revision 1.378
retrieving revision 1.379
diff -u -p -r1.378 -r1.379
--- system-config-printer.spec 25 Mar 2010 16:29:48 -0000 1.378
+++ system-config-printer.spec 25 Mar 2010 16:37:15 -0000 1.379
@@ -27,6 +27,7 @@ Patch7: system-config-printer-reconnect-
Patch8: system-config-printer-downloadable-drivers.patch
Patch9: system-config-printer-JobCancel.patch
Patch10: system-config-printer-inklevel.patch
+Patch11: system-config-printer-cdi-search-harder.patch
Patch100: system-config-printer-pycups-build.patch
@@ -118,6 +119,9 @@ printers.
# Make inklevel widget easier to read (bug #576930).
%patch10 -p1 -b .inklevel
+# check-device-ids: search harder for missing Device IDs.
+%patch11 -p1 -b .cdi-search-harder
+
pushd pycups-%{pycups_version}
# Fixed pycups build with new distutils.
@@ -241,6 +245,7 @@ exit 0
%changelog
* Thu Mar 25 2010 Tim Waugh <twaugh at redhat.com> - 1.2.0-8
+- check-device-ids: search harder for missing Device IDs.
- Make inklevel widget easier to read (bug #576930).
* Wed Mar 24 2010 Tim Waugh <twaugh at redhat.com> - 1.2.0-7
More information about the scm-commits
mailing list