<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/955f55ea50a8a9d1fdec37716a1fe5b3ed11a019">https://github.com/macports/macports-base/commit/955f55ea50a8a9d1fdec37716a1fe5b3ed11a019</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 955f55ea50a8a9d1fdec37716a1fe5b3ed11a019
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Mon Apr 2 02:46:15 2018 +0200
<span style='display:block; white-space:pre;color:#404040;'> fetch: Create temporary tarball in distpath
</span>---
src/port1.0/portfetch.tcl | 14 +++++---------
1 file changed, 5 insertions(+), 9 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 278dc72..131e283 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;'>@@ -436,8 +436,7 @@ proc portfetch::bzrfetch {args} {
</span> set tstamp $result
set mtime [clock scan [lindex [split $tstamp "."] 0] -format "%Y-%m-%d %H:%M:%S %z" -timezone "UTC"]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set tardst [join [list [mktemp "/tmp/macports.portfetch.${name}.XXXXXXXX"] ".tar"] ""]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set tardst "${distpath}/${distname}.${fetch.type}.TMP.tar"
</span> mktar $tardst $exportpath $mtime [list "${bzr.file_prefix}/.bzr"]
set compressed [compressfile ${tardst}]
file rename -force ${compressed} ${generatedfile}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -529,8 +528,7 @@ proc portfetch::cvsfetch {args} {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set tardst [join [list [mktemp "/tmp/macports.portfetch.${name}.XXXXXXXX"] ".tar"] ""]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set tardst "${distpath}/${distname}.${fetch.type}.TMP.tar"
</span> mktar $tardst $exportpath $mtime
set compressed [compressfile ${tardst}]
file rename -force ${compressed} ${generatedfile}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -633,8 +631,7 @@ proc portfetch::svnfetch {args} {
</span> set tstamp $result
set mtime [clock scan [lindex [split $tstamp "."] 0] -format "%Y-%m-%dT%H:%M:%S" -timezone "UTC"]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set tardst [join [list [mktemp "/tmp/macports.portfetch.${name}.XXXXXXXX"] ".tar"] ""]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set tardst "${distpath}/${distname}.${fetch.type}.TMP.tar"
</span> mktar $tardst $exportpath $mtime [list "${svn.file_prefix}/.svn"]
set compressed [compressfile ${tardst}]
file rename -force ${compressed} ${generatedfile}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -792,7 +789,7 @@ proc portfetch::gitfetch {args} {
</span> ui_info "$UI_PREFIX Generating tarball ${git.file}"
# generate main tarball
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set tardst [join [list [mktemp "/tmp/macports.portfetch.${name}.XXXXXXXX"] ".tar"] ""]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set tardst "${distpath}/${distname}.${fetch.type}.TMP.tar"
</span> set cmdstring "${git.cmd} archive --format=tar --prefix=\"${git.file_prefix}/\" --output=${tardst} ${git.branch} 2>&1"
if {[catch {system -W $exportpath $cmdstring} result]} {
delete $tardst
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -871,8 +868,7 @@ proc portfetch::hgfetch {args} {
</span> }
set mtime $result
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set tardst [join [list [mktemp "/tmp/macports.portfetch.${name}.XXXXXXXX"] ".tar"] ""]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set tardst "${distpath}/${distname}.${fetch.type}.TMP.tar"
</span> mktar $tardst $exportpath $mtime [list "${hg.file_prefix}/.hg"]
set compressed [compressfile ${tardst}]
file rename -force ${compressed} ${generatedfile}
</pre><pre style='margin:0'>
</pre>