From: Debian BTS Date: Mon, 13 Jun 2011 20:38:08 +0000 (+0000) Subject: merge changes from dla bugscan tree X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=commitdiff_plain;h=179fea92bb01339575f3666554e0703ca5cc3881;hp=-c merge changes from dla bugscan tree --- 179fea92bb01339575f3666554e0703ca5cc3881 diff --combined bugcfg.pm index d6ad3a8,f3f5af4..e6899a5 --- a/bugcfg.pm +++ b/bugcfg.pm @@@ -6,30 -6,23 +6,24 @@@ use warnings package bugcfg; our ($spooldir,$maintainerlist,$debian_ftproot,$debian_sources,$pseudolist); + use Debbugs::Config qw(:config); + # General configuration stuff - my $host=`hostname`; - chomp $host; - if ($host eq "master" or $host eq "spohr" or $host eq "rietz" or $host eq "busoni") { - $spooldir = "/org/bugs.debian.org/debbugs/spool/db-h"; - $maintainerlist = "/etc/debbugs/Maintainers"; - $debian_ftproot = "/org/bugs.debian.org/etc/indices/ftp/testing"; - $debian_sources = "/etc/debbugs/indices/ftp.sources"; - $pseudolist = "/org/bugs.debian.org/etc/pseudo-packages.description"; - } elsif ($host eq "merkel") { - $spooldir = "/org/bugs.debian.org/spool/db-h"; - $maintainerlist = "/etc/debbugs/Maintainers"; - $debian_ftproot = "/org/bugs.debian.org/etc/indices/ftp/testing"; - $debian_sources = "/etc/debbugs/indices/ftp.sources"; - $pseudolist = "/org/bugs.debian.org/etc/pseudo-packages.description"; - } else { - die "Unknown machine, please configure paths in bugcfg.pm\n"; - } + $spooldir = $config{spool_dir}; + $maintainerlist = $config{maintainer_file}; + $debian_ftproot = $config{package_source} + $debian_sources = $config{package_source}; + $pseudolist = $config{pseudo_desc_file}; + + $debian_sources = "/etc/debbugs/indices/ftp.sources"; + + -our @architectures = ( "i386", "amd64", "alpha", "sparc", "powerpc", "armel", "hppa", "ia64", "mips", "mipsel", "s390" ); +# alpha excluded to RM request +our @architectures = ( "i386", "amd64", "sparc", "powerpc", "armel", "hppa", "ia64", "mips", "mipsel", "s390" ); our @sections = ( "main", "contrib", "non-free" ); - our @priorities = ( "serious", "grave", "critical" ); + our @priorities = $config{strong_severities}; our @skiptags = ( ); 1; diff --combined bugreport index 22f4775,fd8355f..67ecf93 --- a/bugreport +++ b/bugreport @@@ -103,7 -103,7 +103,7 @@@ sub MakeBuglist() } elsif ($scanlib::bugs{$nr}->{'help'}) { print ''; } - print "" if ($scanlib::bugs{$nr}->{'lenny-ignore'} || $scanlib::bugs{$nr}->{'squeeze-ignore'}); + print "" if ($scanlib::bugs{$nr}->{'wheezy-ignore'} || $scanlib::bugs{$nr}->{'squeeze-ignore'}); print "" if $worry; ($sect=$nr) =~ s/([0-9]{2}).*/$1/; printf " %s [%s] [%s] %s\n", scanlib::wwwnumber($nr), @@@ -111,7 -111,7 +111,7 @@@ scanlib::get_relinfo($scanlib::bugs{$nr}), scanlib::htmlsanit($scanlib::bugs{$nr}->{'subject'}); print "" if $worry; - print "" if ($scanlib::bugs{$nr}->{'lenny-ignore'} || $scanlib::bugs{$nr}->{'squeeze-ignore'}); + print "" if ($scanlib::bugs{$nr}->{'wheezy-ignore'} || $scanlib::bugs{$nr}->{'squeeze-ignore'}); } else { printf(" %-6d [%s] [%s] %s\n", $nr, scanlib::get_taginfo($scanlib::bugs{$nr}), scanlib::get_relinfo($scanlib::bugs{$nr}), $scanlib::bugs{$nr}->{'subject'}); @@@ -142,7 -142,7 +142,7 @@@ sub MakeStatistics() for my $nr (@{$scanlib::packagelist{$p}}) { $pendingtotal++ if ($scanlib::bugs{$nr}->{'pending'}); $patchtotal++ if ($scanlib::bugs{$nr}->{'patch'}); - $ignoretotal++ if ($scanlib::bugs{$nr}->{'lenny-ignore'} || $scanlib::bugs{$nr}->{'squeeze-ignore'}); + $ignoretotal++ if ($scanlib::bugs{$nr}->{'wheezy-ignore'} || $scanlib::bugs{$nr}->{'squeeze-ignore'}); $worrytotal++ if (scanlib::check_worry($scanlib::bugs{$nr})); $stabletotal++ if (scanlib::check_worry_stable($scanlib::bugs{$nr})); @@@ -152,12 -152,12 +152,12 @@@ } if ($html) { - print "Total number of release-critical bugs: $bugcount
\n"; + print "Total number of release-critical bugs: $bugcount
\n"; printf("Number that have a patch: %d
\n", $patchtotal); printf("Number that have a fix prepared and waiting to upload: %d
\n", $pendingtotal); printf("Number that are being ignored: %d
\n", $ignoretotal); - printf("Number concerning the current stable release: %d
\n", $stabletotal); - printf("Number concerning the next release: %d

\n", $worrytotal); + printf("Number concerning the current stable release: %d
\n", $stabletotal); + printf("Number concerning the next release: %d

\n", $worrytotal); } else { print "Total number of release-critical bugs: $bugcount\n"; printf("Number that have a patch: %d\n", $patchtotal);