If you're using a distribution, you could attach a custom JavaScript requirement to a choice that represents a package. It would look something like function preventDowngrade() { if (choices.installer_choice_X. packageUgradeAction== downgrade) return false; return true; } Now, to figure out what X should be, you just need to know that the choices id created by Packages are based on their indentations. So if you have the following choice hierarchy group choice A choice B choice C The IDs will be: installer_choice_1 installer_choice_1_1 installer_choice_1_2 installer_choice_2 On Wed, Jul 31, 2013 at 10:14 AM, Matthias Schroeder <Matthias.Schroder@cern.ch> wrote:
Dear all,
I wanted to use Packages to build flat packages and distributions. I would like to avoid that parts of the distribution downgrade some parts that might have a newer version installed already. Does Packages offer this, or do I have to write a script for handling this myself?
So far I have tested my simple flat packages from Packages, and with version strings like 'M.m.n' or 'M.m.n-r'. In my tests 'smaller' version number happily installed overwriting higher version numbers. Is that expected behaviour?
Thanks in advance for your help,
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com