]> git.donarmstrong.com Git - bugscan.git/blobdiff - scanlib.pm
Give "source" as architecture for bug_presence(), in order to also detect
[bugscan.git] / scanlib.pm
index 9bd84581e59d1292a3dfd49662a91e2362ebfa83..7451d88be2826ba6bbebc9b9c662c1325b06f243 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";
 
@@ -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
@@ -326,6 +329,12 @@ sub check_worry_stable {
        return ($bi->{'stable'} && !$bi->{'etch-ignore'});
 }
 
+sub check_worry_unstable {
+       my ($bi) = @_;
+
+       return ($bi->{'unstable'});
+}
+
 sub get_taginfo {
     my $bi = shift;