Revision
32396
Author
jmpp@macports.org
Date
2007-12-28 21:17:25 -0800 (Fri, 28 Dec 2007)

Log Message

Include my r32395 deletion of the /opt/local/etc/macports/mp_version file deletion into the preflight script of the pkg, for future major version releases.
Note that this is not the best place to put this rule, as currently preflight takes care of the dp2mp-move for the pkg installer and they are orthogonal sets
of upgrading rules..., but I simply don't know of anywhere else to put this one so that it is performed when installing from the pkg.

Modified Paths

Diff

Modified: trunk/base/portmgr/dmg/preflight (32395 => 32396)


--- trunk/base/portmgr/dmg/preflight	2007-12-29 05:08:23 UTC (rev 32395)
+++ trunk/base/portmgr/dmg/preflight	2007-12-29 05:17:25 UTC (rev 32396)
@@ -116,6 +116,10 @@
     mv -v "${HOME}/.macports/macports.conf.tmp" "${HOME}/.macports/macports.conf"
 }
 
+
+[ ! -f /opt/local/etc/macports/mp_version ] || rm -vf /opt/local/etc/macports/mp_version
+
+
 [ -f ${UPGRADECHECK} ] || {
     echo ""; echo "MacPorts installation successfully upgraded from the old DarwinPorts namespace!"; echo ""
 	echo "MacPorts rename update done!" > ${UPGRADECHECK} ;