use Debbugs::Text qw(:templates);
+use Debbugs::DB;
+
+my $s;
+if (defined $config{database}) {
+ $s = Debbugs::DB->connect($config{database}) or
+ die "Unable to connect to DB";
+}
+
use CGI::Simple;
my $q = new CGI::Simple;
grep {$_ ne 'newest'}
keys %package_search_keys, 'archive'),
usertags => \%ut,
+ defined $s?(schema => $s):(),
);
# 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):(),
);
}
exclude => $exclude,
this => $this,
options => \%param,
+ defined $s?(schema => $s):(),
(exists $param{dist})?(dist => $param{dist}):(),
);