cleanup configuration to use Debbugs::Config
authorDon Armstrong <don@donarmstrong.com>
Mon, 13 Jun 2011 20:31:55 +0000 (13:31 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 13 Jun 2011 20:31:55 +0000 (13:31 -0700)
bugcfg.pm

index 8fa127e..f3f5af4 100644 (file)
--- a/bugcfg.pm
+++ b/bugcfg.pm
@@ -6,29 +6,23 @@ 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") {
-       $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" );
 our @sections          = ( "main", "contrib", "non-free" );
-our @priorities                = ( "serious", "grave", "critical" );
+our @priorities                = $config{strong_severities};
 our @skiptags          = ( );
 
 1;