[Collab-qa-commits] r966 - udd/web/cgi-bin

neronus-guest at alioth.debian.org neronus-guest at alioth.debian.org
Mon Jul 28 16:50:00 UTC 2008


Author: neronus-guest
Date: 2008-07-28 16:49:58 +0000 (Mon, 28 Jul 2008)
New Revision: 966

Modified:
   udd/web/cgi-bin/packages_in_unstable_but_not_in_testing_by_popcon.cgi
   udd/web/cgi-bin/sources_in_ubuntu_but_not_in_debian_by_popcon.cgi
   udd/web/cgi-bin/sources_in_unstable_but_not_in_testing_by_popcon_max.cgi
Log:
Modified CGI scripts to use new popcon tables/views


Modified: udd/web/cgi-bin/packages_in_unstable_but_not_in_testing_by_popcon.cgi
===================================================================
--- udd/web/cgi-bin/packages_in_unstable_but_not_in_testing_by_popcon.cgi	2008-07-28 16:32:56 UTC (rev 965)
+++ udd/web/cgi-bin/packages_in_unstable_but_not_in_testing_by_popcon.cgi	2008-07-28 16:49:58 UTC (rev 966)
@@ -8,14 +8,14 @@
 
 my $dbh = DBI->connect("dbi:Pg:dbname=udd") or die $!;
 my $sth = $dbh->prepare(<<EOF
-	SELECT DISTINCT unstable.package, (vote + olde + recent + nofiles) as pvote
+	SELECT DISTINCT unstable.package, insts
         FROM (SELECT DISTINCT package FROM packages
                 WHERE distribution = 'debian' and release = 'sid')
           AS unstable,
              popcon
         WHERE NOT EXISTS (SELECT * FROM packages where distribution = 'debian'
                           AND release = 'lenny' and package = unstable.package)
-              AND popcon.name = unstable.package AND popcon.distribution = 'debian' ORDER BY pvote DESC;
+              AND popcon.package = unstable.package AND popcon.distribution = 'debian' ORDER BY insts DESC;
 EOF
 	);
 

Modified: udd/web/cgi-bin/sources_in_ubuntu_but_not_in_debian_by_popcon.cgi
===================================================================
--- udd/web/cgi-bin/sources_in_ubuntu_but_not_in_debian_by_popcon.cgi	2008-07-28 16:32:56 UTC (rev 965)
+++ udd/web/cgi-bin/sources_in_ubuntu_but_not_in_debian_by_popcon.cgi	2008-07-28 16:49:58 UTC (rev 966)
@@ -8,14 +8,14 @@
 
 my $dbh = DBI->connect("dbi:Pg:dbname=udd") or die $!;
 my $sth = $dbh->prepare(<<EOF
-	SELECT DISTINCT intrepid.package, (vote + popcon_src_max.old + recent + nofiles) as pvote
+	SELECT DISTINCT intrepid.package, insts
         FROM (SELECT DISTINCT package FROM sources
                 WHERE distribution = 'ubuntu' and release = 'intrepid')
           AS intrepid,
              popcon_src_max
         WHERE NOT EXISTS (SELECT * FROM sources WHERE distribution = 'debian'
                           and package = intrepid.package)
-              AND popcon_src_max.package = intrepid.package AND popcon_src_max.distribution = 'ubuntu' ORDER BY pvote DESC;
+              AND popcon_src_max.package = intrepid.package AND popcon_src_max.distribution = 'ubuntu' ORDER BY insts DESC;
 EOF
 	);
 

Modified: udd/web/cgi-bin/sources_in_unstable_but_not_in_testing_by_popcon_max.cgi
===================================================================
--- udd/web/cgi-bin/sources_in_unstable_but_not_in_testing_by_popcon_max.cgi	2008-07-28 16:32:56 UTC (rev 965)
+++ udd/web/cgi-bin/sources_in_unstable_but_not_in_testing_by_popcon_max.cgi	2008-07-28 16:49:58 UTC (rev 966)
@@ -8,14 +8,14 @@
 
 my $dbh = DBI->connect("dbi:Pg:dbname=udd") or die $!;
 my $sth = $dbh->prepare(<<EOF
-	SELECT DISTINCT unstable.package, (vote + popcon_src_max.old + recent + nofiles) as pvote
+	SELECT DISTINCT unstable.package, insts
         FROM (SELECT DISTINCT package FROM sources
                 WHERE distribution = 'debian' and release = 'sid')
           AS unstable,
              popcon_src_max
         WHERE NOT EXISTS (SELECT * FROM sources WHERE distribution = 'debian'
                           AND release = 'lenny' and package = unstable.package)
-              AND popcon_src_max.package = unstable.package AND popcon_src_max.distribution = 'debian' ORDER BY pvote DESC;
+              AND popcon_src_max.package = unstable.package AND popcon_src_max.distribution = 'debian' ORDER BY insts DESC;
 EOF
 	);
 




More information about the Collab-qa-commits mailing list