[interchange-cvs] interchange - heins modified lib/Vend/Glimpse.pm

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Fri Nov 9 17:04:00 2001


User:      heins
Date:      2001-11-09 22:03:28 GMT
Modified:  lib/Vend Glimpse.pm
Log:
	* Fix Glimpse case sensitivity bug around since Minivend 4.000000.

Revision  Changes    Path
2.1       +3 -3      interchange/lib/Vend/Glimpse.pm


rev 2.1, prev_rev 2.0
Index: Glimpse.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Glimpse.pm,v
retrieving revision 2.0
retrieving revision 2.1
diff -u -r2.0 -r2.1
--- Glimpse.pm	2001/07/18 02:23:13	2.0
+++ Glimpse.pm	2001/11/09 22:03:28	2.1
@@ -1,6 +1,6 @@
 # Vend::Glimpse - Search indexes with Glimpse
 #
-# $Id: Glimpse.pm,v 2.0 2001/07/18 02:23:13 jon Exp $
+# $Id: Glimpse.pm,v 2.1 2001/11/09 22:03:28 mheins Exp $
 #
 # Adapted for use with Interchange from Search::Glimpse
 #
@@ -25,7 +25,7 @@
 require Vend::Search;
 @ISA = qw(Vend::Search);
 
-$VERSION = substr(q$Revision: 2.0 $, 10);
+$VERSION = substr(q$Revision: 2.1 $, 10);
 use strict;
 
 sub array {
@@ -150,7 +150,7 @@
 		push @cmd, '-' . $s->{mv_spelling_errors};
 	}
 
-	push @cmd, "-i" unless $s->{mv_case};
+	push @cmd, "-i" unless $s->{mv_case} and $s->{mv_case}[0];
 	push @cmd, "-h" unless $s->{mv_return_file_name};
 	push @cmd, "-y -L $s->{mv_max_matches}:0:$s->{mv_max_matches}";
 	push(@cmd, "-F '$s->{mv_search_file}[0]'")