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

Lucas Nussbaum lucas at alioth.debian.org
Wed Nov 4 08:27:51 UTC 2009


Author: lucas
Date: 2009-11-04 08:27:51 +0000 (Wed, 04 Nov 2009)
New Revision: 1619

Added:
   udd/web/cgi-bin/dpkgformat.cgi
Log:
added cgi for Debian source format

Added: udd/web/cgi-bin/dpkgformat.cgi
===================================================================
--- udd/web/cgi-bin/dpkgformat.cgi	                        (rev 0)
+++ udd/web/cgi-bin/dpkgformat.cgi	2009-11-04 08:27:51 UTC (rev 1619)
@@ -0,0 +1,17 @@
+#!/usr/bin/ruby -w
+# Used by DDPO
+
+require 'dbi'
+
+puts "Content-type: text/plain\n\n"
+
+dbh = DBI::connect('DBI:Pg:dbname=udd;port=5441;host=localhost', 'guest')
+sth = dbh.prepare("select format, count(*) as cnt
+from sources
+where distribution='debian' and release='sid'
+group by format order by format asc")
+sth.execute
+while row = sth.fetch do
+  puts "#{row['cnt']} #{row['format']}"
+end
+sth.finish


Property changes on: udd/web/cgi-bin/dpkgformat.cgi
___________________________________________________________________
Added: svn:executable
   + *




More information about the Collab-qa-commits mailing list