[150840] contrib/mp-buildbot/mpbb-selfupdate

ryandesign at macports.org ryandesign at macports.org
Fri Jul 29 13:42:30 PDT 2016


Revision: 150840
          https://trac.macports.org/changeset/150840
Author:   ryandesign at macports.org
Date:     2016-07-29 13:42:30 -0700 (Fri, 29 Jul 2016)
Log Message:
-----------
mp-buildbot: fix bugs in selfupdate MacPorts auto-installation

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

Modified: contrib/mp-buildbot/mpbb-selfupdate
===================================================================
--- contrib/mp-buildbot/mpbb-selfupdate	2016-07-29 20:24:05 UTC (rev 150839)
+++ contrib/mp-buildbot/mpbb-selfupdate	2016-07-29 20:42:30 UTC (rev 150840)
@@ -9,7 +9,7 @@
 }
 
 selfupdate() {
-    if [ ! -f "${option_port}/bin/port" ]; then
+    if [ ! -f "${option_prefix}/bin/port" ]; then
         macports_version=2.3.4
         macports_distname=MacPorts-${macports_version}
         macports_distfile=${macports_distname}.tar.bz2
@@ -17,7 +17,7 @@
             if [ ! -f ${macports_distfile} ]; then
                 curl -fIsLO https://distfiles.macports.org/MacPorts/${macports_distfile} || return $?
             fi
-            tar xJf ${macports_distfile} || return $?
+            tar -xJf ${macports_distfile} || return $?
         fi
         cd ${macports_distname} || return $?
         ./configure --prefix=${option_prefix} --enable-readline || return $?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160729/277941d0/attachment.html>


More information about the macports-changes mailing list