[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New contributors in DPN?



On Thu, Sep 02, 2010 at 11:47:25AM +0200, Alexander Reichle-Schmehl wrote:
> Am 18.08.2010 15:40, schrieb Lucas Nussbaum:
> > UDD now provides the list of new contributors to Debian (= when people
> > did their first upload). It might be interesting to list those in
> > addition to new DDs/DMs.
> > 
> > http://udd.debian.org/cgi-bin/new-maintainers.cgi
> 
> Many thanks for the pointer, I'll list them starting with the next issue.

As one can contribute in a different manner than packaging, here is an
alternative, using keyring changelog.

Does UDD provide a SQL view of the keyring ?

It could use PUBDATE of the last published DPN as input parameter.

As I cannot find many scripts under publicity/dpn/en, I wonder if
Alexander you have already or need some automated helpers to feed the
DPN template.

Best regards.

-- 
Simon Paillard
#!/usr/bin/perl

use strict;
use LWP::UserAgent;

# Parameters
my $inputfile="http://packages.debian.org/changelogs/pool/main/d/debian-keyring/current/changelog.txt";;
open (FILE, "changelog.txt") || die "Erreur E/S : $!\n";

my $date ;

my $previous_dpn = $ARGV[0] ;

while(<FILE>) { 

    if ($_ =~ /debian-keyring \((.*)\) unstable/ ) {
        $date = $1 ; 
        $date =~ s/\.//g ;
    }
    if ( $_ =~ /Add new (\w*) key.*\(([\w\s]*)\)/) {
        my $type = $1;
        $type = "DD" if ($type eq "developer");
        my $name = $2;
        print "$date\t$type\t$name\n" if (defined($previous_dpn) and ($date >= $previous_dpn ));
    }

}

close (FILE);

Reply to: