[31618] trunk/base/portmgr/jobs/PortIndex2MySQL.tcl

jmpp at macports.org jmpp at macports.org
Fri Nov 30 08:54:42 PST 2007

Revision: 31618
Author:   jmpp at macports.org
Date:     2007-11-30 08:54:40 -0800 (Fri, 30 Nov 2007)

Log Message:

Mark the db regen as done only once we're done processing all the ports in the index.

Modified Paths:

Modified: trunk/base/portmgr/jobs/PortIndex2MySQL.tcl
--- trunk/base/portmgr/jobs/PortIndex2MySQL.tcl	2007-11-30 16:12:03 UTC (rev 31617)
+++ trunk/base/portmgr/jobs/PortIndex2MySQL.tcl	2007-11-30 16:54:40 UTC (rev 31618)
@@ -229,7 +229,6 @@
 # Do we need any other?
 puts $sqlfile_fd "DROP TABLE IF EXISTS log;"
 puts $sqlfile_fd "CREATE TABLE log (activity VARCHAR(255), activity_time TIMESTAMP(14));"
-puts $sqlfile_fd "INSERT INTO log VALUES ('update', NOW());"
 puts $sqlfile_fd "DROP TABLE IF EXISTS portfiles;"
 puts $sqlfile_fd "CREATE TABLE portfiles (name VARCHAR(255) PRIMARY KEY NOT NULL, path VARCHAR(255), version VARCHAR(255),  description TEXT);"
@@ -348,7 +347,10 @@
+# Mark the db regen as done only once we're done processing all ports:
+puts $sqlfile_fd "INSERT INTO log VALUES ('update', NOW());"
 # Pipe the contents of the generated sql file to the database command,
 # reading from the file descriptor for the raw sql file to assure completeness.
 if {[catch {seek $sqlfile_fd 0 start} errstr]} {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071130/8f5a3cb8/attachment.html

More information about the macports-changes mailing list