[118759] trunk/base/src/package1.0/portarchivefetch.tcl

cal at macports.org cal at macports.org
Thu Apr 10 12:50:54 PDT 2014


Revision: 118759
          https://trac.macports.org/changeset/118759
Author:   cal at macports.org
Date:     2014-04-10 12:50:53 -0700 (Thu, 10 Apr 2014)
Log Message:
-----------
base: don't fetch archives multiple times, break after the first fetch succeeded

Modified Paths:
--------------
    trunk/base/src/package1.0/portarchivefetch.tcl

Modified: trunk/base/src/package1.0/portarchivefetch.tcl
===================================================================
--- trunk/base/src/package1.0/portarchivefetch.tcl	2014-04-10 18:13:29 UTC (rev 118758)
+++ trunk/base/src/package1.0/portarchivefetch.tcl	2014-04-10 19:50:53 UTC (rev 118759)
@@ -229,6 +229,7 @@
                 try {
                     eval curl fetch --effective-url effectiveURL $fetch_options {$file_url} {"${incoming_path}/${archive}.TMP"}
                     set fetched 1
+                    break
                 } catch {{POSIX SIG SIGINT} eCode eMessage} {
                     ui_debug [msgcat::mc "Aborted fetching archive due to SIGINT"]
                     file delete -force "${incoming_path}/${archive}.TMP"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140410/d74a6047/attachment.html>


More information about the macports-changes mailing list