[103063] users/cal/base-sqlite-portindex/src/portindex1.0/sqlite.tcl

cal at macports.org cal at macports.org
Tue Feb 12 16:55:59 PST 2013


Revision: 103063
          https://trac.macports.org/changeset/103063
Author:   cal at macports.org
Date:     2013-02-12 16:55:59 -0800 (Tue, 12 Feb 2013)
Log Message:
-----------
portindex1.0/sqlite: copy dependency data to temp database, fix wrong argument list

Modified Paths:
--------------
    users/cal/base-sqlite-portindex/src/portindex1.0/sqlite.tcl

Modified: users/cal/base-sqlite-portindex/src/portindex1.0/sqlite.tcl
===================================================================
--- users/cal/base-sqlite-portindex/src/portindex1.0/sqlite.tcl	2013-02-13 00:42:13 UTC (rev 103062)
+++ users/cal/base-sqlite-portindex/src/portindex1.0/sqlite.tcl	2013-02-13 00:55:59 UTC (rev 103063)
@@ -215,12 +215,13 @@
         } else {
             # Create an in-memory copy of the database, for lookup speed.
             db eval {
-                INSERT INTO tmpdb.portindex   SELECT * FROM main.portindex;
-                INSERT INTO tmpdb.variants    SELECT * FROM main.variants;
-                INSERT INTO tmpdb.categories  SELECT * FROM main.categories;
-                INSERT INTO tmpdb.maintainers SELECT * FROM main.maintainers;
-                INSERT INTO tmpdb.platforms   SELECT * FROM main.platforms;
-                INSERT INTO tmpdb.licenses    SELECT * FROM main.licenses;
+                INSERT INTO tmpdb.portindex    SELECT * FROM main.portindex;
+                INSERT INTO tmpdb.variants     SELECT * FROM main.variants;
+                INSERT INTO tmpdb.categories   SELECT * FROM main.categories;
+                INSERT INTO tmpdb.maintainers  SELECT * FROM main.maintainers;
+                INSERT INTO tmpdb.platforms    SELECT * FROM main.platforms;
+                INSERT INTO tmpdb.licenses     SELECT * FROM main.licenses;
+                INSERT INTO tmpdb.dependencies SELECT * FROM main.dependencies;
             }
         }
 
@@ -353,7 +354,7 @@
     }
 
     # Update dependencies in the portindex database. Parameter is a reference to the portinfo array.
-    proc update_dependencies {table field portinfofield portinforef} {
+    proc update_dependencies {portinforef} {
         variable db
 
         upvar $portinforef portinfo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130212/a03222db/attachment.html>


More information about the macports-changes mailing list