/[collab-qa]/udd/web/cgi-bin/sources_in_unstable_but_not_in_testing_by_popcon_max.cgi
ViewVC logotype

Contents of /udd/web/cgi-bin/sources_in_unstable_but_not_in_testing_by_popcon_max.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 950 - (show annotations) (download)
Mon Jul 28 12:41:58 2008 UTC (4 years, 10 months ago) by neronus-guest
File size: 895 byte(s)
Added web folder to svn
1 #!/usr/bin/perl -T
2
3 use strict;
4 use warnings;
5
6 use DBI;
7 use CGI;
8
9 my $dbh = DBI->connect("dbi:Pg:dbname=udd") or die $!;
10 my $sth = $dbh->prepare(<<EOF
11 SELECT DISTINCT unstable.package, (vote + popcon_src_max.old + recent + nofiles) as pvote
12 FROM (SELECT DISTINCT package FROM sources
13 WHERE distribution = 'debian' and release = 'sid')
14 AS unstable,
15 popcon_src_max
16 WHERE NOT EXISTS (SELECT * FROM sources WHERE distribution = 'debian'
17 AND release = 'lenny' and package = unstable.package)
18 AND popcon_src_max.package = unstable.package AND popcon_src_max.distribution = 'debian' ORDER BY pvote DESC;
19 EOF
20 );
21
22 $sth->execute() or die $!;
23
24 my $q = CGI->new();
25
26 print $q->header(-type => 'text/plain');
27 while(my @row = $sth->fetchrow_array) {
28 my ($package, $score) = @row;
29 print "$package\t$score\n";
30 }
31

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5