[53713] trunk/base/src/macports1.0/macports.tcl

jmr at macports.org jmr at macports.org
Sun Jul 12 10:03:54 PDT 2009


Revision: 53713
          http://trac.macports.org/changeset/53713
Author:   jmr at macports.org
Date:     2009-07-12 10:03:52 -0700 (Sun, 12 Jul 2009)
Log Message:
-----------
Don't regenerate PortIndex.quick if it is present but older than PortIndex. Both are generated by the portindex script at the same time now, but sometimes only one actually changes and thus gets checked into svn and eventually ends up on the user's disk with a newer mod time.

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2009-07-12 16:14:24 UTC (rev 53712)
+++ trunk/base/src/macports1.0/macports.tcl	2009-07-12 17:03:52 UTC (rev 53713)
@@ -1901,8 +1901,8 @@
         if {![file exists ${index}]} {
             continue
         }
-        if {![file exists ${index}.quick] || [file mtime ${index}] > [file mtime ${index}.quick]} {
-            # stale or nonexistent quick index file, so generate a new one
+        if {![file exists ${index}.quick]} {
+            ui_warn "No quick index file found, attempting to generate one for source: $source"
             if {[catch {set quicklist [mports_generate_quickindex ${index}]}]} {
                 continue
             }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090712/34d6e4f5/attachment.html>


More information about the macports-changes mailing list