Bug 130254 - Template params don't have to exist, since they may be

subject to interpolation. Ignore names with $ in them as a workaround
r=myk x 2
This commit is contained in:
bbaetz%student.usyd.edu.au 2002-03-12 13:33:55 +00:00
Родитель 9a8f9501ef
Коммит 34a9262f08
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -39,6 +39,9 @@ foreach my $file (@files) {
foreach my $line (@lines) {
if ($line =~ m/template->process\(\"(.+?)\", .+?\)/) {
$template = $1;
# Ignore templates with $ in the name, since they're
# probably vars, not real files
next if $template =~ m/\$/;
push (@testitems, $template) unless $t{$template};
$t{$template} = 1;
}