• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to tell Packages to avoid downgrades?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to tell Packages to avoid downgrades?


  • Subject: Re: How to tell Packages to avoid downgrades?
  • From: Stephane Sudre <email@hidden>
  • Date: Wed, 31 Jul 2013 14:16:50 +0200

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
<email@hidden> 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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Admin authentication
  • Previous by thread: Re: Admin authentication
  • Index(es):
    • Date
    • Thread