[48223] trunk/base/src/port1.0/portfetch.tcl
raimue at macports.org
raimue at macports.org
Mon Mar 16 20:18:06 PDT 2009
Revision: 48223
http://trac.macports.org/changeset/48223
Author: raimue at macports.org
Date: 2009-03-16 20:18:05 -0700 (Mon, 16 Mar 2009)
Log Message:
-----------
port1.0/portfetch.tcl:
Deprecate svn.tag and use svn.revision instead
Modified Paths:
--------------
trunk/base/src/port1.0/portfetch.tcl
Modified: trunk/base/src/port1.0/portfetch.tcl
===================================================================
--- trunk/base/src/port1.0/portfetch.tcl 2009-03-17 03:15:59 UTC (rev 48222)
+++ trunk/base/src/port1.0/portfetch.tcl 2009-03-17 03:18:05 UTC (rev 48223)
@@ -45,10 +45,10 @@
fetch.type fetch.user fetch.password fetch.use_epsv fetch.ignore_sslcert \
master_sites.mirror_subdir patch_sites.mirror_subdir portname \
cvs.module cvs.root cvs.password cvs.date cvs.tag cvs.method \
- svn.url svn.tag svn.method \
+ svn.url svn.tag svn.revision svn.method \
git.url git.branch \
hg.url hg.tag
-
+
# XXX we use the command framework to buy us some useful features,
# but this is not a user-modifiable command
commands cvs
@@ -74,6 +74,7 @@
default svn.dir {${workpath}}
default svn.method {export}
default svn.tag ""
+default svn.revision ""
default svn.env {}
default svn.pre_args {"--non-interactive"}
default svn.args ""
@@ -104,6 +105,9 @@
default mirror_sites.listfile {"mirror_sites.tcl"}
default mirror_sites.listpath {"port1.0/fetch"}
+# Deprecation
+option_deprecate svn.tag svn.revision
+
# Option-executed procedures
option_proc use_bzip2 set_extract_type
option_proc use_lzma set_extract_type
@@ -506,7 +510,7 @@
# Perform an svn fetch
proc svnfetch {args} {
global workpath prefix_frozen
- global svn.env svn.cmd svn.args svn.post_args svn.tag svn.url svn.method
+ global svn.env svn.cmd svn.args svn.post_args svn.revision svn.url svn.method
# Look for the svn command, either in the path or in the prefix
set goodcmd 0
@@ -524,8 +528,8 @@
}
set svn.args "${svn.method} ${svn.args}"
- if {[string length ${svn.tag}]} {
- set svn.args "${svn.args} -r ${svn.tag}"
+ if {[string length ${svn.revision}]} {
+ set svn.args "${svn.args} -r ${svn.revision}"
}
if {[catch {command_exec svn "" "2>&1"} result]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090316/7426c31f/attachment.html>
More information about the macports-changes
mailing list