]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/Debian.pl
undo simonrvn default arch change
[infobot.git] / src / Modules / Debian.pl
index f7e91c067f196414d2c8dccee3446f4206859926..69c7b21c70cc5395d21cd28e43460f5ce904f103 100644 (file)
@@ -12,7 +12,7 @@ no strict 'refs'; # FIXME: dstats aborts if set
 
 my $announce   = 0;
 my $defaultdist        = 'sid';
-my $refresh = &::getChanConfDefault('debianRefreshInterval', 7, $chan) * 60 * 60 * 24;
+my $refresh = &::getChanConfDefault('debianRefreshInterval', 7, $::chan) * 60 * 60 * 24;
 my $debug      = 0;
 my $debian_dir = $::bot_state_dir . 'debian';
 my $country    = 'us'; # well .config it yourself then. ;-)
@@ -21,9 +21,9 @@ my $protocol  = 'http';
 # format: "alias=real".
 my %dists      = (
        'unstable'      => 'sid',
-       'testing'       => 'sarge',
-       'stable'        => 'woody',
-       'oldstable'     => 'potato',
+       'testing'       => 'etch',
+       'stable'        => 'sarge',
+       'oldstable'     => 'woody',
        'incoming'      => 'incoming',
 );
 
@@ -1077,10 +1077,10 @@ sub DebianFind {
     my @results = sort &searchPackage($str);
 
     if (!scalar @results) {
-       &::Forker("debian", sub { &searchContents($str); } );
+       &::Forker("Debian", sub { &searchContents($str); } );
     } elsif (scalar @results == 1) {
        &::status("searchPackage returned one result; getting info of package instead!");
-       &::Forker("debian", sub { &infoPackages("info", "$results[0] $dist"); } );
+       &::Forker("Debian", sub { &infoPackages("info", "$results[0] $dist"); } );
     } else {
        my $prefix = "Debian Package Listing of '$query' ";
        &::performStrictReply( &::formListReply(0, $prefix, @results) );