From: Steinar H. Gunderson Date: Mon, 18 Jun 2007 13:00:49 +0000 (+0000) Subject: Output testing/unstable counts britney can use. X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=commitdiff_plain;h=5e9977948a37d9ff7ae73479a72b2b2e01c19b16 Output testing/unstable counts britney can use. --- diff --git a/make-britney-counts b/make-britney-counts new file mode 100755 index 0000000..9a78432 --- /dev/null +++ b/make-britney-counts @@ -0,0 +1,73 @@ +#!/usr/bin/perl +# vim: ts=8 sw=8 nowrap + +# Generate a report britney can use + +use Getopt::Std; +require scanlib; +require bugcfg; +use strict; +# use warnings; + +my $Version = "make-britney-count 1.0\nCopyright (C) Steinar H. Gunderson \n"; +my $statusfile = "status"; + +sub ShowVersion() { + print "$Version\n"; + exit 0; +} + +sub ShowUsage() { + print <{'package'}) { + $package =~ y/A-Z/a-z/; + $package = $` if ($package =~ /[^-+._a-z0-9]/); + + if (scanlib::check_worry_unstable($bug)) { + ++$unstablebugs{$package}; + } + if (scanlib::check_worry($bug)) { + ++$testingbugs{$package}; + } + } +} + +open TESTING, ">", "britney/testing" + or die "britney/testing: $!"; +for my $pkg (sort keys %testingbugs) { + print TESTING "$pkg $testingbugs{$pkg}\n"; +} +close TESTING; + +open UNSTABLE, ">", "britney/unstable" + or die "britney/unstable: $!"; +for my $pkg (sort keys %unstablebugs) { + print UNSTABLE "$pkg $unstablebugs{$pkg}\n"; +} +close UNSTABLE; + +exit 0; + diff --git a/scanlib.pm b/scanlib.pm index 9bd8458..50a6951 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); } @@ -326,6 +327,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;