[92903] trunk/base/portmgr/dmg/postflight
jmr at macports.org
jmr at macports.org
Thu May 10 07:34:22 PDT 2012
Revision: 92903
https://trac.macports.org/changeset/92903
Author: jmr at macports.org
Date: 2012-05-10 07:34:22 -0700 (Thu, 10 May 2012)
Log Message:
-----------
fix path to scripts for flat pkgs
Modified Paths:
--------------
trunk/base/portmgr/dmg/postflight
Modified: trunk/base/portmgr/dmg/postflight
===================================================================
--- trunk/base/portmgr/dmg/postflight 2012-05-10 14:34:21 UTC (rev 92902)
+++ trunk/base/portmgr/dmg/postflight 2012-05-10 14:34:22 UTC (rev 92903)
@@ -36,7 +36,7 @@
#set -x
# Script identification ('cause more often than not the svn Id is not expanded):
-VERSION=2.0.99
+VERSION=2.1.0
# Abstraction variables:
PREFIX=__PREFIX__
@@ -67,12 +67,13 @@
# Command to update the MacPorts installation through "selfupdate":
function update_macports {
+ SCRIPT_DIR=$(dirname $0)
# Add [default] tag to the central MacPorts repository, if it isn't already
echo "Adding [default] tag to sources.conf if needed..."
- ${TCLSH} ${PACKAGE_PATH}/Contents/Resources/upgrade_sources_conf_default.tcl ${PREFIX}
+ ${TCLSH} ${SCRIPT_DIR}/upgrade_sources_conf_default.tcl ${PREFIX}
# Convert image directories (and direct mode installs) to image archives
echo "Updating port image format..."
- ${TCLSH} ${PACKAGE_PATH}/Contents/Resources/images_to_archives.tcl ${MACPORTS_TCL_DIR}
+ ${TCLSH} ${SCRIPT_DIR}/images_to_archives.tcl ${MACPORTS_TCL_DIR}
echo "Synchronizing the MacPorts installation with the project's rsync server..."
if ! ${BINPATH}/port -v selfupdate; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120510/7f457cc2/attachment.html>
More information about the macports-changes
mailing list