From 5c55ae5b79a2fc57c0b13c52d3acaf72e8ae0b71 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 25 Mar 2010 16:33:49 +0000 Subject: [PATCH] - check-device-ids: search harder for missing Device IDs. --- system-config-printer-cdi-search-harder.patch | 26 +++++++++++++++++++ system-config-printer.spec | 5 ++++ 2 files changed, 31 insertions(+) create mode 100644 system-config-printer-cdi-search-harder.patch diff --git a/system-config-printer-cdi-search-harder.patch b/system-config-printer-cdi-search-harder.patch new file mode 100644 index 0000000..08e0252 --- /dev/null +++ b/system-config-printer-cdi-search-harder.patch @@ -0,0 +1,26 @@ +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 diff --git a/system-config-printer.spec b/system-config-printer.spec index 4a431f9..78337b1 100644 --- a/system-config-printer.spec +++ b/system-config-printer.spec @@ -27,6 +27,7 @@ Patch7: system-config-printer-reconnect-error.patch 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 - 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 - 1.2.0-7