Detect OS upgrades and refer users to Migration

Jeremy Lavergne jeremy at lavergne.gotdns.org
Mon Nov 4 17:11:43 PST 2013


Can we deduce that the OS has changed when the installed platform of any package no longer matches the current platform?

On Nov 4, 2013, at 20:06, Ryan Schmidt <ryandesign at macports.org> wrote:

> With Mavericks, more so than with previous OS versions (I think one reason is the different handling of .la files), users are running into errors when they selfupdate and upgrade outdated ports without realizing that we’d really prefer them to uninstall and reinstall all ports.
> 
> Is there a way that we could detect that the OS has been upgraded so that we could refer users to the Migration wiki page? I don’t think we keep track of the last-used OS X version anywhere, but maybe it’s as simple as checking if any installed port was installed for a different OS version than the current one (e.g. we’re now on darwin 13 but there are ports installed with darwin 12).



More information about the macports-dev mailing list