rpms/system-config-printer/F-13 system-config-printer-cdi-cmd.patch, NONE, 1.1 system-config-printer.spec, 1.371, 1.372

Tim Waugh twaugh at fedoraproject.org
Fri Mar 19 11:44:41 UTC 2010


Author: twaugh

Update of /cvs/pkgs/rpms/system-config-printer/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv29614

Modified Files:
	system-config-printer.spec 
Added Files:
	system-config-printer-cdi-cmd.patch 
Log Message:
* Fri Mar 19 2010 Tim Waugh <twaugh at redhat.com> - 1.2.0-3
- Show CMD field in check-device-ids.py.


system-config-printer-cdi-cmd.patch:
 check-device-ids.py |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

--- NEW FILE system-config-printer-cdi-cmd.patch ---
diff -up system-config-printer-1.2.0/check-device-ids.py.cdi-cmd system-config-printer-1.2.0/check-device-ids.py
--- system-config-printer-1.2.0/check-device-ids.py.cdi-cmd	2010-03-19 10:39:18.000000000 +0000
+++ system-config-printer-1.2.0/check-device-ids.py	2010-03-19 10:39:55.011621602 +0000
@@ -160,9 +160,16 @@ for device, attrs in devices.iteritems (
     else:
         line = last
 
-    print "%s %s: MFG:%s;MDL:%s;" % (line, make_and_model,
-                                     id_fields['MFG'],
-                                     id_fields['MDL'])
+    cmd = id_fields['CMD']
+    if cmd:
+        cmd = "CMD:%s;" % reduce (lambda x, y: x + ',' + y, cmd)
+    else:
+        cmd = ""
+
+    print "%s %s: MFG:%s;MDL:%s;%s" % (line, make_and_model,
+                                       id_fields['MFG'],
+                                       id_fields['MDL'],
+                                       cmd)
 
     try:
         drivers = ppds.ids[id_fields['MFG'].lower ()][id_fields['MDL'].lower ()]


Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/F-13/system-config-printer.spec,v
retrieving revision 1.371
retrieving revision 1.372
diff -u -p -r1.371 -r1.372
--- system-config-printer.spec	18 Mar 2010 16:49:46 -0000	1.371
+++ system-config-printer.spec	19 Mar 2010 11:44:41 -0000	1.372
@@ -7,7 +7,7 @@
 Summary: A printer administration tool
 Name: system-config-printer
 Version: 1.2.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+
 URL: http://cyberelk.net/tim/software/system-config-printer/
 Group: System Environment/Base
@@ -20,6 +20,7 @@ Source2: http://cyberelk.net/tim/data/py
 Patch1: system-config-printer-no-epydoc.patch
 Patch2: system-config-printer-lowercase-mfg-mdl.patch
 Patch3: system-config-printer-cdi-no-drivers.patch
+Patch4: system-config-printer-cdi-cmd.patch
 
 BuildRequires: cups-devel >= 1.2
 BuildRequires: python-devel >= 2.4
@@ -88,6 +89,9 @@ printers.
 # (bug #574827).
 %patch3 -p1 -b .cdi-no-drivers
 
+# Show CMD field in check-device-ids.py.
+%patch4 -p1 -b .cdi-cmd
+
 %build
 %configure --with-udev-rules
 
@@ -203,6 +207,9 @@ rm -rf %buildroot
 exit 0
 
 %changelog
+* Fri Mar 19 2010 Tim Waugh <twaugh at redhat.com> - 1.2.0-3
+- Show CMD field in check-device-ids.py.
+
 * Thu Mar 18 2010 Tim Waugh <twaugh at redhat.com> - 1.2.0-2
 - Fixed traceback in check-driver-ids.py when no drivers are found
   (bug #574827).



More information about the scm-commits mailing list