[150698] contrib/mp-buildbot/mpbb-gather-archives

ryandesign at macports.org ryandesign at macports.org
Tue Jul 26 22:22:27 PDT 2016


Revision: 150698
          https://trac.macports.org/changeset/150698
Author:   ryandesign at macports.org
Date:     2016-07-26 22:22:27 -0700 (Tue, 26 Jul 2016)
Log Message:
-----------
mp-buildbot: gather archives of dependencies too

Modified Paths:
--------------
    contrib/mp-buildbot/mpbb-gather-archives

Modified: contrib/mp-buildbot/mpbb-gather-archives
===================================================================
--- contrib/mp-buildbot/mpbb-gather-archives	2016-07-27 05:22:03 UTC (rev 150697)
+++ contrib/mp-buildbot/mpbb-gather-archives	2016-07-27 05:22:27 UTC (rev 150698)
@@ -6,7 +6,7 @@
 
 
 gather-archives-help() {
-    echo "Gather unpublished and distributable archives of the built port."
+    echo "Gather unpublished distributable archives of the built port and its dependencies."
 }
 
 gather-archives() {
@@ -14,16 +14,16 @@
     tclsh=${option_prefix}/bin/port-tclsh
     mkdir -p "${option_staging_dir}" || return $?
 
-    archive_path=$("${option_prefix}/bin/port" -q location "${option_port}")
-    archive_basename=$(basename "${archive_path}")
+    for archive_path in $("${option_prefix}/bin/port" -q location active); do
+        archive_port=$(basename "$(dirname "${archive_path}")")
+        archive_basename=$(basename "${archive_path}")
 
-    if ! ${curl} -fIsL "${option_archive_site}/${option_port}/${archive_basename}" > /dev/null; then
-
-        # check for distributability
-        if "${tclsh}" "${option_workdir}/tools/port_binary_distributable.tcl" -v "${option_port}"; then
-            echo "Staging archive for upload: ${archive_basename}"
-            mkdir -p "${option_staging_dir}/${option_port}" || return $?
-            cp -p "${archive_path}" "${option_staging_dir}/${option_port}/${archive_basename}" || return $?
+        if ! ${curl} -fIsL "${option_archive_site}/${archive_port}/${archive_basename}" > /dev/null; then
+            if "${tclsh}" "${option_workdir}/tools/port_binary_distributable.tcl" -v "${archive_port}"; then
+                echo "Staging archive for upload: ${archive_basename}"
+                mkdir -p "${option_staging_dir}/${archive_port}" || return $?
+                cp -p "${archive_path}" "${option_staging_dir}/${archive_port}/${archive_basename}" || return $?
+            fi
         fi
-    fi
+    done
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160726/afe0b581/attachment.html>


More information about the macports-changes mailing list