X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=scanlib.pm;h=7451d88be2826ba6bbebc9b9c662c1325b06f243;hp=4ef4191d28b25d73bd02204c5d4dd60e9df2a652;hb=db439f4044efdec3b5383b20fb0799c2582099dc;hpb=2076316f9eac086043f75fad2729a58cc067cf08 diff --git a/scanlib.pm b/scanlib.pm index 4ef4191..7451d88 100644 --- a/scanlib.pm +++ b/scanlib.pm @@ -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"; @@ -180,8 +183,9 @@ sub scanspooldir() { $disttags{'unstable'} = grep(/^sid$/, @tags); $disttags{'experimental'} = grep(/^experimental$/, @tags); - # default according to dondelelcaro 2006-11-11 + # default according to vorlon 2007-06-17 if (!$disttags{'oldstable'} && !$disttags{'stable'} && !$disttags{'testing'} && !$disttags{'unstable'} && !$disttags{'experimental'}) { + $disttags{'stable'} = 1; $disttags{'testing'} = 1; $disttags{'unstable'} = 1; $disttags{'experimental'} = 1; @@ -208,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 @@ -325,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;