[152507] contrib/mp-buildbot/mpbb-cleanup

raimue at macports.org raimue at macports.org
Sun Sep 11 11:47:58 PDT 2016


Revision: 152507
          https://trac.macports.org/changeset/152507
Author:   raimue at macports.org
Date:     2016-09-11 11:47:58 -0700 (Sun, 11 Sep 2016)
Log Message:
-----------
buildbot: skip cleanup if port is not installed

Modified Paths:
--------------
    contrib/mp-buildbot/mpbb-cleanup

Modified: contrib/mp-buildbot/mpbb-cleanup
===================================================================
--- contrib/mp-buildbot/mpbb-cleanup	2016-09-11 18:41:15 UTC (rev 152506)
+++ contrib/mp-buildbot/mpbb-cleanup	2016-09-11 18:47:58 UTC (rev 152507)
@@ -10,6 +10,15 @@
 }
 
 cleanup() {
+    # if this is the very first build, selfupdate did not install port yet
+    # $option_prefix is set by mpbb
+    # shellcheck disable=SC2154
+    if [ ! -e "${option_prefix}/bin/port" ]; then
+        echo "---> Skipping cleanup"
+        echo "port not installed at ${option_prefix}/bin/port"
+        return
+    fi
+
     echo "----> Deactivating ports"
     # $option_prefix is set by mpbb
     # shellcheck disable=SC2154
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160911/11665778/attachment.html>


More information about the macports-changes mailing list