[Collab-qa-commits] r1405 - in udd: . sql

tille at alioth.debian.org tille at alioth.debian.org
Sun Mar 15 10:57:39 UTC 2009


Author: tille
Date: 2009-03-15 10:57:39 +0000 (Sun, 15 Mar 2009)
New Revision: 1405

Added:
   udd/config_ddtp.yaml
   udd/config_ftpnew.yaml
   udd/sql/ddtp.sql
   udd/sql/ftpnew.sql
Log:
WOrking ddtp gatherer, preparation of ftpnew gatherer (mor to come here)


Added: udd/config_ddtp.yaml
===================================================================
--- udd/config_ddtp.yaml	                        (rev 0)
+++ udd/config_ddtp.yaml	2009-03-15 10:57:39 UTC (rev 1405)
@@ -0,0 +1,19 @@
+general:
+  dbname: udd
+  types:
+    ddtp: module udd.ddtp_gatherer
+  debug: 1
+  lock-dir: /org/udd.debian.net/locks
+
+  archs:
+   [i386]
+
+ddtp:
+  type: ddtp
+  update-command: /org/udd.debian.net/udd/scripts/fetch_ddtp_translations.sh
+  path: /org/udd.debian.net/mirrors/ddtp
+  mirror: ftp.de.debian.org
+  files: Translation-.*\.gz
+  releases: sid testing stable
+  table: ddtp
+  schema: ddtp

Added: udd/config_ftpnew.yaml
===================================================================
--- udd/config_ftpnew.yaml	                        (rev 0)
+++ udd/config_ftpnew.yaml	2009-03-15 10:57:39 UTC (rev 1405)
@@ -0,0 +1,19 @@
+general:
+  dbname: udd
+  types:
+    ftpnew: module udd.ftpnew_gatherer
+  debug: 1
+  lock-dir: /org/udd.debian.net/locks
+
+  archs:
+   [i386]
+
+ftpnew:
+  type: ftpnew
+  update-command: /org/udd.debian.net/udd/scripts/fetch_ftpnew.sh
+  path: /org/udd.debian.net/mirrors/ftpnew
+  cache: /org/udd.debian.net/mirrors/cache
+  ftpmasterURL: http://ftp-master.debian.org/new/
+  table_sources:  new_sources
+  table_packages: new_packages
+  releases_ignore: "'etch'"

Added: udd/sql/ddtp.sql
===================================================================
--- udd/sql/ddtp.sql	                        (rev 0)
+++ udd/sql/ddtp.sql	2009-03-15 10:57:39 UTC (rev 1405)
@@ -0,0 +1,30 @@
+-- DDTP Translations
+
+BEGIN;
+
+CREATE TABLE ddtp (
+       package      text,
+       distribution text,
+       release      text,
+       component    text,   -- == 'main' for the moment
+       version      text,   -- different versions for a package might exist because some archs
+                            -- might have problems with newer versions if a new version comes
+                            -- with a new description we might have different translations for
+                            -- a (package, distribution, release, component, language) key so
+                            -- we also need to store the version number of a package translation
+                            -- In case there are different versions with an identical description
+                            -- this field will hold the highest version number according to
+                            -- dpkg --compare-versions
+       language     text,
+       description  text,
+       long_description text,
+       md5sum       text,   -- md5 sum of the original English description as it is used
+                            -- in DDTP.  This is obtained via
+                            --   md5(description || E'\n' || long_description || E'\n')
+                            -- from packages table
+    PRIMARY KEY (package, distribution, release, component, version, language)
+);
+
+
+COMMIT;
+

Added: udd/sql/ftpnew.sql
===================================================================
--- udd/sql/ftpnew.sql	                        (rev 0)
+++ udd/sql/ftpnew.sql	2009-03-15 10:57:39 UTC (rev 1405)
@@ -0,0 +1,57 @@
+-- http://ftp-master.debian.org/new.822
+
+BEGIN;
+
+-- Sources
+CREATE TABLE new_sources (
+       source text,
+       version text,
+       maintainer text,
+       maintainer_name text,
+       maintainer_email text,
+       format text,
+       files text,
+       uploaders text,
+       binaries text,             -- by parsing http://ftp-master.debian.org/new/<src>_<version>.html#dsc field "Binary:"
+       changed_by text,           -- Uploader?
+       architecture text,
+       homepage text,             -- by parsing http://ftp-master.debian.org/new/<src>_<version>.html#dsc field "Homepage:"
+       vcs_type text,             -- by parsing http://ftp-master.debian.org/new/<src>_<version>.html#dsc field "Vcs-*:"
+       vcs_url text,              -- by parsing http://ftp-master.debian.org/new/<src>_<version>.html#dsc field "Vcs-*:"
+       vcs_browser text,          -- by parsing http://ftp-master.debian.org/new/<src>_<version>.html#dsc field "Vcs-Browser:"
+       distribution text,
+       closes int,                -- WNPP bug #
+       license text,              -- trying to parse http://ftp-master.debian.org/new/<bin1>_<version>.html#binary-<bin1>-copyright field "License:"
+       last_modified timestamp,
+       queue text,
+    PRIMARY KEY (source, version, distribution)
+);
+
+
+-- Packages
+CREATE TABLE new_packages (
+       package text,
+       version text,
+       architecture text,
+       maintainer text,
+       description text,          -- by parsing http://ftp-master.debian.org/new/<bin>_<version>.html#control field "Description:"
+       source text,
+       depends text,
+       recommends text,
+       suggests text,
+       enhances text,
+       pre_depends text,
+       breaks text,
+       replaces text,
+       provides text,
+       conflicts text,
+       installed_size integer,
+       homepage text,
+       section text,
+       long_description text,
+       license text,              -- trying to parse http://ftp-master.debian.org/new/<package>_<version>.html#binary-<package>-copyright field "License:"
+    PRIMARY KEY (package, version, architecture)
+);
+
+COMMIT;
+




More information about the Collab-qa-commits mailing list