[Collab-qa-commits] r1932 - in udd: sql udd

Lucas Nussbaum lucas at alioth.debian.org
Sat Apr 9 12:21:54 UTC 2011


Author: lucas
Date: 2011-04-09 12:21:45 +0000 (Sat, 09 Apr 2011)
New Revision: 1932

Modified:
   udd/sql/setup.sql
   udd/sql/upgrade.sql
   udd/udd/packages_gatherer.py
   udd/udd/sources_gatherer.py
Log:
add ruby-versions: to DB

Modified: udd/sql/setup.sql
===================================================================
--- udd/sql/setup.sql	2011-04-09 11:32:31 UTC (rev 1931)
+++ udd/sql/setup.sql	2011-04-09 12:21:45 UTC (rev 1932)
@@ -7,7 +7,7 @@
     build_conflicts text, build_conflicts_indep text, priority text, section
     text, distribution text, release text, component text, vcs_type text,
     vcs_url text, vcs_browser text,
-    python_version text, checksums_sha1 text, checksums_sha256 text,
+    python_version text, ruby_versions text, checksums_sha1 text, checksums_sha256 text,
     original_maintainer text, dm_upload_allowed boolean,
     PRIMARY KEY (source, version, distribution, release, component));
 
@@ -64,6 +64,7 @@
     installed_size int, homepage text, size int,
     build_essential text, origin text, sha1 text, replaces text, section text,
     md5sum text, bugs text, priority text, tag text, task text, python_version text,
+    ruby_versions text,
     provides text, conflicts text, sha256 text, original_maintainer text,
     distribution text, release text, component text,
   PRIMARY KEY (package, version, architecture, distribution, release, component),
@@ -85,7 +86,7 @@
     build_conflicts text, build_conflicts_indep text, priority text, section
     text, distribution text, release text, component text, vcs_type text,
     vcs_url text, vcs_browser text,
-    python_version text, checksums_sha1 text, checksums_sha256 text,
+    python_version text, ruby_versions text, checksums_sha1 text, checksums_sha256 text,
     original_maintainer text, dm_upload_allowed boolean,
     PRIMARY KEY (source, version, distribution, release, component));
 
@@ -117,6 +118,7 @@
     installed_size int, homepage text, size int,
     build_essential text, origin text, sha1 text, replaces text, section text,
     md5sum text, bugs text, priority text, tag text, task text, python_version text,
+    ruby_versions text,
     provides text, conflicts text, sha256 text, original_maintainer text,
     distribution text, release text, component text,
   PRIMARY KEY (package, version, architecture, distribution, release, component),
@@ -139,7 +141,7 @@
     build_conflicts text, build_conflicts_indep text, priority text, section
     text, distribution text, release text, component text, vcs_type text,
     vcs_url text, vcs_browser text,
-    python_version text, checksums_sha1 text, checksums_sha256 text,
+    python_version text, ruby_versions text, checksums_sha1 text, checksums_sha256 text,
     original_maintainer text, dm_upload_allowed boolean,
     PRIMARY KEY (source, version, distribution, release, component));
 
@@ -171,6 +173,7 @@
     installed_size int, homepage text, size int,
     build_essential text, origin text, sha1 text, replaces text, section text,
     md5sum text, bugs text, priority text, tag text, task text, python_version text,
+    ruby_versions text,
     provides text, conflicts text, sha256 text, original_maintainer text,
     distribution text, release text, component text,
   PRIMARY KEY (package, version, architecture, distribution, release, component),

Modified: udd/sql/upgrade.sql
===================================================================
--- udd/sql/upgrade.sql	2011-04-09 11:32:31 UTC (rev 1931)
+++ udd/sql/upgrade.sql	2011-04-09 12:21:45 UTC (rev 1932)
@@ -333,3 +333,11 @@
 -- 2011-02-08
 ALTER TABLE bugs add affects_oldstable boolean;
 ALTER TABLE archived_bugs add affects_oldstable boolean;
+
+-- 2011-04-09
+ALTER TABLE sources add ruby_versions text;
+ALTER TABLE packages add ruby_versions text;
+ALTER TABLE ubuntu_sources add ruby_versions text;
+ALTER TABLE ubuntu_packages add ruby_versions text;
+ALTER TABLE derivatives_sources add ruby_versions text;
+ALTER TABLE derivatives_packages add ruby_versions text;

Modified: udd/udd/packages_gatherer.py
===================================================================
--- udd/udd/packages_gatherer.py	2011-04-09 11:32:31 UTC (rev 1931)
+++ udd/udd/packages_gatherer.py	2011-04-09 12:21:45 UTC (rev 1932)
@@ -31,7 +31,7 @@
       'Suggests': 0, 'Enhances': 0, 'Pre-Depends': 0, 'Breaks':0, 'Installed-Size': 0,
       'Homepage': 0, 'Size': 0, 'Build-Essential':0, 'Origin':0,
       'SHA1':0, 'Replaces':0, 'Section':0, 'MD5sum':0, 'Bugs':0, 'Priority':0,
-      'Tag':0, 'Task':0, 'Python-Version':0, 'Provides':0, 'Conflicts':0,
+      'Tag':0, 'Task':0, 'Python-Version':0, 'Ruby-Versions':0, 'Provides':0, 'Conflicts':0,
       'SHA256':0, 'Original-Maintainer':0}
   ignorable = {'Modaliases':0, 'Filename':0, 'Npp-Filename':0, 'Npp-Name':0, 'Npp-Mimetype':0, 'Npp-Applications':0, 'Python-Runtime':0, 'Npp-File':0, 'Npp-Description':0, 'Url':0, 'Gstreamer-Elements':0, 'Gstreamer-Version':0, 'Gstreamer-Decoders':0, 'Gstreamer-Uri-Sinks':0, 'Gstreamer-Encoders':0, 'Gstreamer-Uri-Sources':0, 'url':0, 'Vdr-PatchLevel':0, 'Vdr-Patchlevel':0, 'originalmaintainer':0, 'Originalmaintainer':0, 'Build-Recommends':0, 'Multi-Arch':0, 'Maintainer-Homepage':0, 'Tads2-Version':0, 'Tads3-Version':0, 'Xul-Appid': 0, 'Subarchitecture':0, 'Package-Type':0, 'Kernel-Version': 0, 'Installer-Menu-Item':0, 'Supported':0, 'subarchitecture':0, 'package-type':0, 'Python3-Version':0 }
   ignorable_re = re.compile("^(Orig-|Original-|Origianl-|Orginal-|Orignal-|Orgiinal-|Orginial-|Debian-|X-Original-|Upstream-)")
@@ -43,7 +43,7 @@
       %(Pre-Depends)s, %(Breaks)s, %(Installed-Size)s, %(Homepage)s, %(Size)s,
       %(Build-Essential)s, %(Origin)s, %(SHA1)s,
       %(Replaces)s, %(Section)s, %(MD5sum)s, %(Bugs)s, %(Priority)s,
-      %(Tag)s, %(Task)s, %(Python-Version)s, %(Provides)s,
+      %(Tag)s, %(Task)s, %(Python-Version)s, %(Ruby-Versions)s, %(Provides)s,
       %(Conflicts)s, %(SHA256)s, %(Original-Maintainer)s)"""
 
   def __init__(self, connection, config, source):
@@ -175,13 +175,13 @@
 	    Source_Version, Essential, Depends, Recommends, Suggests, Enhances,
 	    Pre_Depends, Breaks, Installed_Size, Homepage, Size,
 	    build_essential, origin, sha1, replaces, section,
-            md5sum, bugs, priority, tag, task, python_version,
+            md5sum, bugs, priority, tag, task, python_version, ruby_versions,
             provides, conflicts, sha256, original_maintainer,
 	    Distribution, Release, Component)
 	  VALUES
 	    ( $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15,
 	      $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28,
-	      $29, $30, $31, $32, $33, $34, $35, '%s', '%s', '%s')
+	      $29, $30, $31, $32, $33, $34, $35, $36, '%s', '%s', '%s')
 	    """ %  (table, self._distr, src_cfg['release'], comp))
 #	  aux.print_debug("Reading file " + path)
 	  # Copy content from gzipped file to temporary file, so that apt_pkg is

Modified: udd/udd/sources_gatherer.py
===================================================================
--- udd/udd/sources_gatherer.py	2011-04-09 11:32:31 UTC (rev 1931)
+++ udd/udd/sources_gatherer.py	2011-04-09 12:21:45 UTC (rev 1932)
@@ -24,7 +24,7 @@
   non_mandatory = {'Format':0, 'Uploaders': 0, 'Binary': 0, 'Architecture': 0,
       'Standards-Version': 0, 'Homepage': 0, 'Build-Depends': 0,
       'Build-Depends-Indep': 0, 'Build-Conflicts': 0, 'Build-Conflicts-Indep': 0,
-      'Priority': 0, 'Section': 0, 'Python-Version': 0, 'Checksums-Sha1':0,
+      'Priority': 0, 'Section': 0, 'Python-Version': 0, 'Ruby-Versions': 0, 'Checksums-Sha1':0,
       'Checksums-Sha256':0, 'Original-Maintainer':0, 'Dm-Upload-Allowed':0} 
   ignorable = {'Vcs-Arch': 0, 'Vcs-Bzr': 0,
       'Vcs-Cvs': 0, 'Vcs-Darcs': 0, 'Vcs-Git': 0, 'Vcs-Hg': 0, 'Vcs-Svn': 0,
@@ -103,7 +103,7 @@
       %(Homepage)s, %(Build-Depends)s, %(Build-Depends-Indep)s,
       %(Build-Conflicts)s, %(Build-Conflicts-Indep)s, %(Priority)s,
       %(Section)s, %(Vcs-Type)s, %(Vcs-Url)s, %(Vcs-Browser)s,
-      %(Python-Version)s, %(Checksums-Sha1)s, %(Checksums-Sha256)s,
+      %(Python-Version)s, %(Ruby-Versions)s, %(Checksums-Sha1)s, %(Checksums-Sha256)s,
       %(Original-Maintainer)s, %(Dm-Upload-Allowed)s)"""
     query_uploaders = """EXECUTE uploader_insert (%(Package)s, %(Version)s,
       %(Uploader)s, %(Name)s, %(Email)s)"""
@@ -154,12 +154,12 @@
           (Source, Version, Maintainer, Maintainer_name, Maintainer_email, Format, Files, Uploaders, Bin,
           Architecture, Standards_Version, Homepage, Build_Depends,
           Build_Depends_Indep, Build_Conflicts, Build_Conflicts_Indep, Priority,
-          Section, Vcs_Type, Vcs_Url, Vcs_Browser, python_version, checksums_sha1,
+          Section, Vcs_Type, Vcs_Url, Vcs_Browser, python_version, ruby_versions, checksums_sha1,
           checksums_sha256, original_maintainer, dm_upload_allowed,
           Distribution, Release, Component)
         VALUES
           ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16,
-          $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, '%s', '%s', '%s')"""\
+          $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, '%s', '%s', '%s')"""\
           % (table, src_cfg['distribution'], src_cfg['release'], comp)
         cur.execute(query)
         query = """PREPARE uploader_insert as INSERT INTO %s




More information about the Collab-qa-commits mailing list