]> git.donarmstrong.com Git - bugscan.git/blobdiff - scanlib.pm
skip counts which end in .bad
[bugscan.git] / scanlib.pm
index 9bd84581e59d1292a3dfd49662a91e2362ebfa83..65b3d7a6d3211290af4f8c4d318672f946f5f772 100644 (file)
@@ -83,6 +83,7 @@ sub readpackages() {
                                next unless m/^Package:\s/;     # We're only interested in the packagenames
                                s/^Package:\s*//;                       # Strip the fieldname
                                $section{$_} = "$archive/$sect";
+                               print "$root/$sect/binary-$arch/Packages.gz\n" if ($_ eq 'xtla');
                        }
                        close(P);
                }
@@ -141,6 +142,8 @@ sub scanspooldir() {
        my $skip;               # Flow control
        my $walk;               # index variable
        my $taginfo;    # Tag info
+                                       
+       my @archs_with_source = ( @bugcfg::architectures, 'source' );
 
        chdir($dir) or die "chdir $dir: $!\n";
 
@@ -174,9 +177,9 @@ sub scanspooldir() {
                next if $skip==1;
        
                my %disttags = ();      
-               $disttags{'oldstable'}    = grep(/^sarge$/, @tags);
-               $disttags{'stable'}       = grep(/^etch$/, @tags);
-               $disttags{'testing'}      = grep(/^lenny$/, @tags);
+               $disttags{'oldstable'}    = grep(/^etch$/, @tags);
+               $disttags{'stable'}       = grep(/^lenny$/, @tags);
+               $disttags{'testing'}      = grep(/^squeeze$/, @tags);
                $disttags{'unstable'}     = grep(/^sid$/, @tags);
                $disttags{'experimental'} = grep(/^experimental$/, @tags);
                        
@@ -209,7 +212,7 @@ sub scanspooldir() {
                                        bug => $f, 
                                        status => $bug, 
                                        dist => $dist, 
-                                       arch => \@bugcfg::architectures
+                                       arch => \@archs_with_source
                                );
 
                                # ignore bugs that are absent/fixed in this distribution, include everything
@@ -225,7 +228,7 @@ sub scanspooldir() {
                        next if !$affects_any;
                }
 
-               for my $keyword qw(pending patch help moreinfo unreproducible security upstream etch-ignore lenny-ignore) {
+               for my $keyword qw(pending patch help moreinfo unreproducible security upstream etch-ignore lenny-ignore squeeze-ignore) {
                        $bi->{$keyword} = grep(/^$keyword$/, @tags);
                }
 
@@ -317,13 +320,19 @@ sub wwwname() {
 sub check_worry {
        my ($bi) = @_;
 
-       return ($bi->{'testing'} && !$bi->{'lenny-ignore'});
+       return ($bi->{'testing'} && !$bi->{'squeeze-ignore'});
 }
 
 sub check_worry_stable {
        my ($bi) = @_;
 
-       return ($bi->{'stable'} && !$bi->{'etch-ignore'});
+       return ($bi->{'stable'} && !$bi->{'lenny-ignore'});
+}
+
+sub check_worry_unstable {
+       my ($bi) = @_;
+
+       return ($bi->{'unstable'});
 }
 
 sub get_taginfo {
@@ -337,7 +346,7 @@ sub get_taginfo {
        $taginfo .= $bi->{'unreproducible'} ? "R" : " ";
        $taginfo .= $bi->{'security'}       ? "S" : " ";
        $taginfo .= $bi->{'upstream'}       ? "U" : " ";
-       $taginfo .= ($bi->{'etch-ignore'} || $bi->{'lenny-ignore'}) ? "I" : " ";
+       $taginfo .= ($bi->{'lenny-ignore'} || $bi->{'squeeze-ignore'}) ? "I" : " ";
 
        return $taginfo;
 }