rpms/foomatic/devel foomatic-filters-int-options.patch, NONE, 1.1 foomatic.spec, 1.233, 1.234

Tim Waugh twaugh at fedoraproject.org
Tue Jan 19 17:03:47 UTC 2010


Author: twaugh

Update of /cvs/pkgs/rpms/foomatic/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29822

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-9
- 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/devel/foomatic.spec,v
retrieving revision 1.233
retrieving revision 1.234
diff -u -p -r1.233 -r1.234
--- foomatic.spec	15 Dec 2009 13:12:24 -0000	1.233
+++ foomatic.spec	19 Jan 2010 17:03:47 -0000	1.234
@@ -4,7 +4,7 @@
 Summary: Database of printers and printer drivers
 Name:		foomatic
 Version:	%{enginever}
-Release:    8%{?dist}
+Release:    9%{?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-9
+- Fix for handling integer options (bug #531278).
+
 * Tue Dec 15 2009 Tim Waugh <twaugh at redhat.com> - 4.0.3-8
 - Really fixed installation path for perl module (bug #547696).
 



More information about the scm-commits mailing list