rpms/system-config-printer/devel system-config-printer-0.7.74.x.patch, 1.1, 1.2 system-config-printer.spec, 1.132, 1.133

Tim Waugh (twaugh) fedora-extras-commits at redhat.com
Tue Sep 25 11:41:08 UTC 2007


Author: twaugh

Update of /cvs/pkgs/rpms/system-config-printer/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15460

Modified Files:
	system-config-printer-0.7.74.x.patch 
	system-config-printer.spec 
Log Message:
* Tue Sep 25 2007 Tim Waugh <twaugh at redhat.com> 0.7.74.2-3
- Pull in SVN patch from stable branch for foomatic recommended
  drivers (bug #292021).


system-config-printer-0.7.74.x.patch:

Index: system-config-printer-0.7.74.x.patch
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/devel/system-config-printer-0.7.74.x.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- system-config-printer-0.7.74.x.patch	21 Sep 2007 17:45:28 -0000	1.1
+++ system-config-printer-0.7.74.x.patch	25 Sep 2007 11:41:06 -0000	1.2
@@ -124,8 +124,8 @@
 ===================================================================
 Index: system-config-printer.glade
 ===================================================================
---- system-config-printer.glade	(.../tags/0.7.74.2)	(revision 1571)
-+++ system-config-printer.glade	(.../branches/0.7.74.x)	(revision 1571)
+--- system-config-printer.glade	(.../tags/0.7.74.2)	(revision 1574)
++++ system-config-printer.glade	(.../branches/0.7.74.x)	(revision 1574)
 @@ -432,6 +432,40 @@
  			      </child>
  
@@ -169,9 +169,17 @@
  				  <property name="can_focus">True</property>
 Index: ChangeLog
 ===================================================================
---- ChangeLog	(.../tags/0.7.74.2)	(revision 1571)
-+++ ChangeLog	(.../branches/0.7.74.x)	(revision 1571)
-@@ -1,3 +1,18 @@
+--- ChangeLog	(.../tags/0.7.74.2)	(revision 1574)
++++ ChangeLog	(.../branches/0.7.74.x)	(revision 1574)
+@@ -1,3 +1,26 @@
++2007-09-25  Tim Waugh  <twaugh at redhat.com>
++
++	* ppds.py (getDriverType): Fix foomatic recommended driver
++	discovery (requires CUPS patch to prevent '(recommended)' string
++	getting stripped).
++	(PPDs.getDriverTypeWithBias): Let getDriverType have access to the
++	PPDs object.
++
 +2007-09-04  Tim Waugh  <twaugh at redhat.com>
 +
 +	* system-config-printer.py (GUI.setConnected): Set sensitivity for
@@ -190,10 +198,43 @@
  2007-09-19  Tim Waugh  <twaugh at redhat.com>
  
  	* configure.in: Version 0.7.74.2.
+Index: ppds.py
+===================================================================
+--- ppds.py	(.../tags/0.7.74.2)	(revision 1574)
++++ ppds.py	(.../branches/0.7.74.x)	(revision 1574)
+@@ -112,7 +112,7 @@
+ DRIVER_TYPE_CUPS = 80
+ DRIVER_TYPE_FOOMATIC_GENERIC = 90
+ DRIVER_DOES_NOT_WORK = 999
+-def getDriverType (ppdname):
++def getDriverType (ppdname, ppds=None):
+     """Decides which of the above types ppdname is."""
+     if ppdname.startswith ("gutenprint"):
+         if ppdname.find ("/simple/") != -1:
+@@ -128,7 +128,9 @@
+         # Foomatic (generated) -- but which driver?
+         if ppdname.find ("Generic")!= -1:
+             return DRIVER_TYPE_FOOMATIC_GENERIC
+-        if ppdname.find ("(recommended)")!= -1:
++        if (ppds != None and
++            ppds.getInfoFromPPDName (ppdname).\
++            get ('ppd-make-and-model', '').find ("(recommended)") != -1):
+             return DRIVER_TYPE_FOOMATIC_RECOMMENDED
+         if ppdname.find ("-Postscript")!= -1:
+             return DRIVER_TYPE_FOOMATIC_PS
+@@ -234,7 +236,7 @@
+         make_model = dict['ppd-make-and-model']
+         mfg, mdl = ppdMakeModelSplit (make_model)
+         def getDriverTypeWithBias (x, mfg):
+-            t = getDriverType (x)
++            t = getDriverType (x, ppds=self)
+             if mfg == "HP":
+                 if t == DRIVER_TYPE_FOOMATIC_HPIJS:
+                     # Prefer HPIJS for HP devices.
 Index: system-config-printer.py
 ===================================================================
---- system-config-printer.py	(.../tags/0.7.74.2)	(revision 1571)
-+++ system-config-printer.py	(.../branches/0.7.74.x)	(revision 1571)
+--- system-config-printer.py	(.../tags/0.7.74.2)	(revision 1574)
++++ system-config-printer.py	(.../branches/0.7.74.x)	(revision 1574)
 @@ -74,6 +74,12 @@
  ready_cursor = gtk.gdk.Cursor(gtk.gdk.LEFT_PTR)
  ellipsis = unichr(0x2026)


Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/devel/system-config-printer.spec,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -r1.132 -r1.133
--- system-config-printer.spec	21 Sep 2007 17:45:28 -0000	1.132
+++ system-config-printer.spec	25 Sep 2007 11:41:06 -0000	1.133
@@ -3,7 +3,7 @@
 Summary: A printer administration tool
 Name: system-config-printer
 Version: 0.7.74.2
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+
 URL: http://cyberelk.net/tim/software/system-config-printer/
 Group: System Environment/Base
@@ -130,6 +130,10 @@
 fi
 
 %changelog
+* Tue Sep 25 2007 Tim Waugh <twaugh at redhat.com> 0.7.74.2-3
+- Pull in SVN patch from stable branch for foomatic recommended
+  drivers (bug #292021).
+
 * Fri Sep 21 2007 Tim Waugh <twaugh at redhat.com> 0.7.74.2-2
 - Pull in SVN patch from stable branch for 'Allow printing from
   the Internet' check-box (bug #221003).




More information about the scm-commits mailing list