From 1033dd75d62cba701f852d3e307289f2227463c0 Mon Sep 17 00:00:00 2001 From: "kestes%walrus.com" Date: Mon, 3 Dec 2001 19:46:04 +0000 Subject: [PATCH] add support for an ALL page. --- .../tinderbox2/src/default_conf/ReqData.pm | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/webtools/tinderbox2/src/default_conf/ReqData.pm b/webtools/tinderbox2/src/default_conf/ReqData.pm index bf5f888c9a6a..ef3a19be174e 100644 --- a/webtools/tinderbox2/src/default_conf/ReqData.pm +++ b/webtools/tinderbox2/src/default_conf/ReqData.pm @@ -6,8 +6,8 @@ # tinderbox trees. -# $Revision: 1.1 $ -# $Date: 2001/11/16 20:43:27 $ +# $Revision: 1.2 $ +# $Date: 2001/12/03 19:46:04 $ # $Author: kestes%walrus.com $ # $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/default_conf/ReqData.pm,v $ # $Name: $ @@ -145,13 +145,20 @@ sub tree2queue { # turn a tree name into the name of a its file. -sub tree2logfile { +sub tree2logfiles { my ($tree_name) = @_; my $queue_name = tree2queue($tree_name); - my $req_log = "$REQ_HOME/releng-${queue_name}/etc/req-log"; - - return $req_log; + + my @req_logs; + if ($tree_name eq 'ALL') { + @req_logs = glob "$REQ_HOME/releng-*/etc/req-log"; + @req_logs = map { main::extract_filename_chars($_) } @req_logs; + }else{ + @req_logs = ("$REQ_HOME/releng-${queue_name}/etc/req-log"); + } + + return @req_logs; }