[interchange-cvs] interchange - heins modified lib/Vend/Scan.pm
interchange-core@interchange.redhat.com
interchange-core@interchange.redhat.com
Fri Nov 16 21:27:18 2001
User: heins
Date: 2001-11-17 02:22:56 GMT
Modified: lib/Vend Tag: STABLE_4_8-branch Scan.pm
Log:
* Fix phantom database problem researched by Chris Ochs. The problem
was auto-vivification of a Vend::Cfg->{Database} entry, causing a
problem in PreFork mode.
This problem was plaguing a lot of people and I wouldn't have found
it without Chris's fine work.
Revision Changes Path
No revision
No revision
2.0.2.1 +3 -3 interchange/lib/Vend/Scan.pm
rev 2.0.2.1, prev_rev 2.0
Index: Scan.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Scan.pm,v
retrieving revision 2.0
retrieving revision 2.0.2.1
diff -u -r2.0 -r2.0.2.1
--- Scan.pm 2001/07/18 02:23:14 2.0
+++ Scan.pm 2001/11/17 02:22:55 2.0.2.1
@@ -1,6 +1,6 @@
# Vend::Scan - Prepare searches for Interchange
#
-# $Id: Scan.pm,v 2.0 2001/07/18 02:23:14 jon Exp $
+# $Id: Scan.pm,v 2.0.2.1 2001/11/17 02:22:55 mheins Exp $
#
# Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
#
@@ -29,7 +29,7 @@
perform_search
);
-$VERSION = substr(q$Revision: 2.0 $, 10);
+$VERSION = substr(q$Revision: 2.0.2.1 $, 10);
use strict;
use Vend::Util;
@@ -894,7 +894,7 @@
}
if($_ !~ /\./) {
$_ = $Vend::Cfg->{Database}{$_}{'file'}
- if defined $Vend::Cfg->{Database}{$_}{'file'};
+ if defined $Vend::Cfg->{Database}{$_};
}
$ok &&= $_ !~ /$Vend::Cfg->{NoSearch}/
if $Vend::Cfg->{NoSearch};