From 0c0b6247f003d9fcee85c83ff729162349890ad2 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" Date: Wed, 19 Jan 2000 19:04:31 +0000 Subject: [PATCH] Oops; query results were always coming back empty if you specified multiple directories. git-svn-id: svn://10.0.0.236/trunk@58246 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bonsai/cvsquery.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bonsai/cvsquery.pl b/mozilla/webtools/bonsai/cvsquery.pl index 04a0b52005b..196b26fa124 100755 --- a/mozilla/webtools/bonsai/cvsquery.pl +++ b/mozilla/webtools/bonsai/cvsquery.pl @@ -160,9 +160,11 @@ sub query_checkins { } if (0 < @::query_dirs) { + my @list; foreach my $i (@::query_dirs) { - $qstring .= " and dirs.dir like " . SqlQuote("$i%"); + push(@list, "dirs.dir like " . SqlQuote("$i%")); } + $qstring .= "and (" . join(" or ", @list) . ")"; } if (defined $::query_file && $::query_file ne '') {