rpms/foomatic/F-12 foomatic-filters-int-options.patch, NONE, 1.1 foomatic.spec, 1.231, 1.232

Tim Waugh twaugh at fedoraproject.org
Tue Jan 19 17:01:22 UTC 2010


Author: twaugh

Update of /cvs/pkgs/rpms/foomatic/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29524

Modified Files:
	foomatic.spec 
Added Files:
	foomatic-filters-int-options.patch 
Log Message:
* Tue Jan 19 2010 Tim Waugh <twaugh at redhat.com> - 4.0.3-8
- Fix for handling integer options (bug #531278).


foomatic-filters-int-options.patch:
 options.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE foomatic-filters-int-options.patch ---
diff -up foomatic-filters-4.0.3/options.c.int-options foomatic-filters-4.0.3/options.c
--- foomatic-filters-4.0.3/options.c.int-options	2009-08-19 19:08:41.000000000 +0100
+++ foomatic-filters-4.0.3/options.c	2010-01-19 16:43:09.343981005 +0000
@@ -863,7 +863,8 @@ int option_get_command(dstr_t *cmd, opti
 
     /* If the value is set to a predefined choice */
     choice = option_find_choice(opt, valstr);
-    if (choice) {
+    if (choice && (*choice->command ||
+		   ((opt->type != TYPE_INT) && (opt->type != TYPE_FLOAT)))) {
         dstrcpy(cmd, choice->command);
         return 1;
     }


Index: foomatic.spec
===================================================================
RCS file: /cvs/pkgs/rpms/foomatic/F-12/foomatic.spec,v
retrieving revision 1.231
retrieving revision 1.232
diff -u -p -r1.231 -r1.232
--- foomatic.spec	4 Dec 2009 09:37:39 -0000	1.231
+++ foomatic.spec	19 Jan 2010 17:01:22 -0000	1.232
@@ -4,7 +4,7 @@
 Summary: Database of printers and printer drivers
 Name:		foomatic
 Version:	%{enginever}
-Release:    7%{?dist}
+Release:    8%{?dist}
 License:	GPLv2+
 Group: System Environment/Libraries
 
@@ -20,6 +20,9 @@ Patch1: foomatic-filters-libdir.patch
 # Use mkstemp, not mktemp.
 Patch2: foomatic-mkstemp.patch
 
+# Fix for handling integer options (bug #531278).
+Patch3: foomatic-filters-int-options.patch
+
 ## PATCHES FOR FOOMATIC-DB-ENGINE (PATCHES 101 TO 200)
 
 # Use libdir.
@@ -73,6 +76,7 @@ The site http://www.linuxprinting.org/ i
 pushd foomatic-filters-%{filtersver}
 %patch1 -p1 -b .libdir
 %patch2 -p1 -b .mkstemp
+%patch3 -p1 -b .int-options
 aclocal
 automake
 autoconf
@@ -160,6 +164,9 @@ rm -fr %buildroot $RPM_BUILD_DIR/%{name}
 %{_var}/cache/foomatic
 
 %changelog
+* Tue Jan 19 2010 Tim Waugh <twaugh at redhat.com> - 4.0.3-8
+- Fix for handling integer options (bug #531278).
+
 * Fri Dec  4 2009 Tim Waugh <twaugh at redhat.com> - 4.0.3-7
 - Fixed installation path for perl module.
 



More information about the scm-commits mailing list