[Collab-qa-commits] r1039 - in udd: src web/cgi-bin
lucas at alioth.debian.org
lucas at alioth.debian.org
Sat Aug 9 17:56:28 UTC 2008
Author: lucas
Date: 2008-08-09 17:56:28 +0000 (Sat, 09 Aug 2008)
New Revision: 1039
Modified:
udd/src/setup-db.sql
udd/web/cgi-bin/package_rc_bug_count.cgi
udd/web/cgi-bin/removal_candidates.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:
sources, ubuntu_sources, orphaned_packages: rename package to source.
Modified: udd/src/setup-db.sql
===================================================================
--- udd/src/setup-db.sql 2008-08-09 17:52:27 UTC (rev 1038)
+++ udd/src/setup-db.sql 2008-08-09 17:56:28 UTC (rev 1039)
@@ -21,7 +21,7 @@
PRIMARY KEY (package, version, architecture, distribution, release, component));
CREATE TABLE sources
- (package text, version text, maintainer text, format text, files text,
+ (source text, version text, maintainer text, format text, files text,
uploaders text, bin text, architecture text, standards_version text,
homepage text, build_depends text, build_depends_indep text,
build_conflicts text, build_conflicts_indep text, priority text, section
@@ -32,7 +32,7 @@
PRIMARY KEY (package, version, distribution, release, component));
CREATE TABLE ubuntu_sources
- (package text, version text, maintainer text, format text, files text,
+ (source text, version text, maintainer text, format text, files text,
uploaders text, bin text, architecture text, standards_version text,
homepage text, build_depends text, build_depends_indep text,
build_conflicts text, build_conflicts_indep text, priority text, section
@@ -180,7 +180,7 @@
);
CREATE TABLE orphaned_packages (
- package TEXT PRIMARY KEY,
+ source TEXT PRIMARY KEY,
type TEXT,
bug INT,
description TEXT,
Modified: udd/web/cgi-bin/package_rc_bug_count.cgi
===================================================================
--- udd/web/cgi-bin/package_rc_bug_count.cgi 2008-08-09 17:52:27 UTC (rev 1038)
+++ udd/web/cgi-bin/package_rc_bug_count.cgi 2008-08-09 17:56:28 UTC (rev 1039)
@@ -23,7 +23,7 @@
AND(
EXISTS (SELECT package FROM packages p WHERE p.package = b.package AND p.distribution = 'debian' AND p.release = 'lenny')
OR
- EXISTS (SELECT package FROM sources s WHERE s.package = b.package AND s.distribution = 'debian' AND s.release = 'lenny')
+ EXISTS (SELECT source FROM sources s WHERE s.source = b.package AND s.distribution = 'debian' AND s.release = 'lenny')
)
GROUP BY b.package
EOF
Modified: udd/web/cgi-bin/removal_candidates.cgi
===================================================================
--- udd/web/cgi-bin/removal_candidates.cgi 2008-08-09 17:52:27 UTC (rev 1038)
+++ udd/web/cgi-bin/removal_candidates.cgi 2008-08-09 17:56:28 UTC (rev 1039)
@@ -7,17 +7,17 @@
use CGI;
my $s = <<EOF
-select sources.package, id, insts, arrival, last_modified, title
+select sources.source, id, insts, arrival, last_modified, title
from sources, bugs_unarchived AS bugs, popcon_src
where sources.distribution = 'debian' and sources.release = 'lenny'
-and bugs.source = sources.package
+and bugs.source = sources.source
and bugs.affects_testing = true
and bugs.affects_unstable = true
and bugs.severity in ('serious', 'grave', 'critical')
and arrival < (NOW() - interval '14 DAYS')
-and sources.package = popcon_src.source
+and sources.source = popcon_src.source
and popcon_src.insts < 2000
-order by package;
+order by source;
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-08-09 17:52:27 UTC (rev 1038)
+++ udd/web/cgi-bin/sources_in_ubuntu_but_not_in_debian_by_popcon.cgi 2008-08-09 17:56:28 UTC (rev 1039)
@@ -8,14 +8,14 @@
my $dbh = DBI->connect("dbi:Pg:dbname=udd") or die $!;
my $sth = $dbh->prepare(<<EOF
- SELECT DISTINCT intrepid.package, insts
- FROM (SELECT DISTINCT package FROM ubuntu_sources
+ SELECT DISTINCT intrepid.source, insts
+ FROM (SELECT DISTINCT source FROM ubuntu_sources
WHERE release = 'intrepid')
AS intrepid,
ubuntu_popcon_src
WHERE NOT EXISTS (SELECT * FROM sources WHERE distribution = 'debian'
- and package = intrepid.package)
- AND ubuntu_popcon_src.source = intrepid.package ORDER BY insts DESC;
+ and source = intrepid.source)
+ AND ubuntu_popcon_src.source = intrepid.source 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-08-09 17:52:27 UTC (rev 1038)
+++ udd/web/cgi-bin/sources_in_unstable_but_not_in_testing_by_popcon_max.cgi 2008-08-09 17:56:28 UTC (rev 1039)
@@ -8,14 +8,14 @@
my $dbh = DBI->connect("dbi:Pg:dbname=udd") or die $!;
my $sth = $dbh->prepare(<<EOF
-SELECT DISTINCT unstable.package, insts
-FROM (SELECT DISTINCT package FROM sources
+SELECT DISTINCT unstable.source, insts
+FROM (SELECT DISTINCT source FROM sources
WHERE distribution = 'debian' and release = 'sid')
AS unstable,
popcon_src
-WHERE unstable.package NOT IN (SELECT package FROM sources WHERE distribution = 'debian'
+WHERE unstable.source NOT IN (SELECT source FROM sources WHERE distribution = 'debian'
AND release = 'lenny')
-AND popcon_src.source = unstable.package ORDER BY insts DESC;
+AND popcon_src.source = unstable.source ORDER BY insts DESC;
EOF
);
More information about the Collab-qa-commits
mailing list