[65056] trunk/base/portmgr/dmg/postflight
jmr at macports.org
jmr at macports.org
Sat Mar 20 07:39:27 PDT 2010
Revision: 65056
http://trac.macports.org/changeset/65056
Author: jmr at macports.org
Date: 2010-03-20 07:39:25 -0700 (Sat, 20 Mar 2010)
Log Message:
-----------
delete any old macports1.0 dir in postflight script
Modified Paths:
--------------
trunk/base/portmgr/dmg/postflight
Modified: trunk/base/portmgr/dmg/postflight
===================================================================
--- trunk/base/portmgr/dmg/postflight 2010-03-20 14:28:09 UTC (rev 65055)
+++ trunk/base/portmgr/dmg/postflight 2010-03-20 14:39:25 UTC (rev 65056)
@@ -117,6 +117,10 @@
# link macports1.0 into tcl package dir if possible
function link_tcl_package {
+ # delete old directory if present
+ if test -d "${TCL_PACKAGE_DIR}/macports1.0"; then
+ rm -vrf "${TCL_PACKAGE_DIR}/macports1.0" || true
+ fi
if ! test -e "${TCL_PACKAGE_DIR}/macports1.0" && test -w "${TCL_PACKAGE_DIR}"; then
ln -vs "${MACPORTS_TCL_DIR}/macports1.0" "${TCL_PACKAGE_DIR}/macports1.0" || true
fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100320/af2dd57b/attachment.html>
More information about the macports-changes
mailing list