[43229] trunk/base/portmgr/dmg/postflight

blb at macports.org blb at macports.org
Sun Dec 7 01:05:21 PST 2008


Revision: 43229
          http://trac.macports.org/changeset/43229
Author:   blb at macports.org
Date:     2008-12-07 01:05:20 -0800 (Sun, 07 Dec 2008)
Log Message:
-----------
portmgr/dmg/postflight - fix a doubly-stupid mistake where $0 is the script
name, $1 is the package path, however since this was in a function those
are the arguments to said function, so use PACKAGE_PATH (set by the
installer)

Modified Paths:
--------------
    trunk/base/portmgr/dmg/postflight

Modified: trunk/base/portmgr/dmg/postflight
===================================================================
--- trunk/base/portmgr/dmg/postflight	2008-12-07 08:58:19 UTC (rev 43228)
+++ trunk/base/portmgr/dmg/postflight	2008-12-07 09:05:20 UTC (rev 43229)
@@ -60,9 +60,9 @@
     fi
     
     # Add [default] tag to the central MacPorts repository, if it isn't already
-    ${TCLSH} ${0}/Contents/Resources/upgrade_sources_conf_default.tcl ${PREFIX}
+    ${TCLSH} ${PACKAGE_PATH}/Contents/Resources/upgrade_sources_conf_default.tcl ${PREFIX}
     # Remove any duplicates from the dep map (could occur with 1.6 and earlier)
-    ${TCLSH} ${0}/Contents/Resources/dep_map_clean.tcl ${TCL_PACKAGE_DIR}
+    ${TCLSH} ${PACKAGE_PATH}/Contents/Resources/dep_map_clean.tcl ${TCL_PACKAGE_DIR}
 }
 
 # Through this command we write an environment variable to an appropriate shell configuration file,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081207/69867815/attachment.html>


More information about the macports-changes mailing list