[32396] trunk/base/portmgr/dmg/preflight

jmpp at macports.org jmpp at macports.org
Fri Dec 28 21:17:27 PST 2007


Revision: 32396
          http://trac.macosforge.org/projects/macports/changeset/32396
Author:   jmpp at 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:
--------------
    trunk/base/portmgr/dmg/preflight

Modified: trunk/base/portmgr/dmg/preflight
===================================================================
--- 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} ;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071228/444fd672/attachment.html


More information about the macports-changes mailing list