<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch vcs-fetch
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/af5b9a130114c8fd0e6ac1034e4e9a0241e36721">https://github.com/macports/macports-base/commit/af5b9a130114c8fd0e6ac1034e4e9a0241e36721</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit af5b9a130114c8fd0e6ac1034e4e9a0241e36721
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Sun Apr 15 20:49:10 2018 +0200
<span style='display:block; white-space:pre;color:#404040;'> mirror: Track files for all VCS fetch.types
</span>---
src/port1.0/portfetch.tcl | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/portfetch.tcl b/src/port1.0/portfetch.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 08fdf52..6098c33 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/portfetch.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/portfetch.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1024,7 +1024,7 @@ proc portfetch::fetchfiles {args} {
</span>
# Utility function to delete fetched files.
proc portfetch::fetch_deletefiles {args} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- global distpath fetch.type svn.file git.file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global distpath fetch.type
</span> variable fetch_urls
foreach {url_var distfile} $fetch_urls {
if {[file isfile $distpath/$distfile]} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1033,14 +1033,14 @@ proc portfetch::fetch_deletefiles {args} {
</span> }
switch -- "${fetch.type}" {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- svn {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file isfile "${distpath}/${svn.file}"]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force "${distpath}/${svn.file}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- git {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file isfile "${distpath}/${git.file}"]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file delete -force "${distpath}/${git.file}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bzr -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cvs -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ svn -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ git -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ hg {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global ${fetch.type}.file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file isfile "${distpath}/[set ${fetch.type}.file]"]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force "${distpath}/[set ${fetch.type}.file]"
</span> }
}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1048,7 +1048,7 @@ proc portfetch::fetch_deletefiles {args} {
</span>
# Utility function to add files to a list of fetched files.
proc portfetch::fetch_addfilestomap {filemapname} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- global distpath fetch.type svn.file git.file $filemapname
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global distpath fetch.type $filemapname
</span> variable fetch_urls
foreach {url_var distfile} $fetch_urls {
if {[file isfile $distpath/$distfile]} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1057,14 +1057,14 @@ proc portfetch::fetch_addfilestomap {filemapname} {
</span> }
switch -- "${fetch.type}" {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- svn {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[svn_tarballable] && [file isfile "${distpath}/${svn.file}"]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- filemap set $filemapname ${distpath}/${svn.file} 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- git {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[git_tarballable] && [file isfile "${distpath}/${git.file}"]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- filemap set $filemapname ${distpath}/${git.file} 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bzr -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cvs -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ svn -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ git -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ hg {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global ${fetch.type}.file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[${fetch.type}_tarballable] && [file isfile "${distpath}/[set ${fetch.type}.file]"]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ filemap set $filemapname ${distpath}/[set ${fetch.type}.file] 1
</span> }
}
}
</pre><pre style='margin:0'>
</pre>