use Debbugs::DB;
my $s;
+my @schema_arg = ();
if (defined $config{database}) {
$s = Debbugs::DB->connect($config{database}) or
die "Unable to connect to DB";
+ @schema_arg = ('schema',$s);
}
use CGI::Simple;
grep {$_ ne 'newest'}
keys %package_search_keys, 'archive'),
usertags => \%ut,
- defined $s?(schema => $s):(),
+ @schema_arg,
);
# shove in bugs which affect this package if there is a package or a
grep {$_ ne 'newest'}
keys %package_search_keys, 'archive'),
usertags => \%ut,
- defined $s?(schema => $s):(),
+ @schema_arg,
);
}
exclude => $exclude,
this => $this,
options => \%param,
- defined $s?(schema => $s):(),
+ @schema_arg,
(exists $param{dist})?(dist => $param{dist}):(),
);
package => $package,
options => \%param,
bugs => \@bugs,
+ @schema_arg,
);
}
for my $package (make_list($param{src}||[])) {
package => $package,
options => \%param,
bugs => \@bugs,
+ @schema_arg,
);
}