[25158] branches/dp2mp-move/base/src/macports1.0/macports.tcl

source_changes at macosforge.org source_changes at macosforge.org
Mon May 14 23:24:48 PDT 2007


Revision: 25158
          http://trac.macosforge.org/projects/macports/changeset/25158
Author:   jmpp at macports.org
Date:     2007-05-14 23:24:47 -0700 (Mon, 14 May 2007)

Log Message:
-----------

Port sources are now downloaded into a ${prefix}/var/macports/sources/<server>/<tree_offered>
skeleton. In the most common scenario, our default configuration, server = rsync.macports.org
and the offered tree is release/ports (new layout from this branch), so the full path will
most likely translate into /opt/local/var/macports/sources/rsync.macports.org/release/ports.

I believe this approach is both intuitive and adaptative: on the one hand, it allows us to
organize the fetched sources (either base or the ports tree) according to the server that
offers them (thinking about mirrors in the future) and, therein, according to quality
qualifiers used by the vendor, e.g. release, stable, unstable, etc.

Modified Paths:
--------------
    branches/dp2mp-move/base/src/macports1.0/macports.tcl

Modified: branches/dp2mp-move/base/src/macports1.0/macports.tcl
===================================================================
--- branches/dp2mp-move/base/src/macports1.0/macports.tcl	2007-05-15 06:05:13 UTC (rev 25157)
+++ branches/dp2mp-move/base/src/macports1.0/macports.tcl	2007-05-15 06:24:47 UTC (rev 25158)
@@ -1157,10 +1157,9 @@
 }
 
 proc macports::getsourcepath {url} {
-	global macports::portdbpath
-	regsub {://} $url {.} source_path
-	regsub -all {/} $source_path {_} source_path
-	return [file join $portdbpath sources $source_path]
+    global macports::portdbpath
+    set source_path [split $url ://]
+    return [file join $portdbpath sources [lindex $source_path 3] [lindex $source_path 4] [lindex $source_path 5]]
 }
 
 proc macports::getportbuildpath {id} {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070514/5b4e3605/attachment.html


More information about the macports-changes mailing list