Re: How to tell Packages to avoid downgrades?
Re: How to tell Packages to avoid downgrades?
- Subject: Re: How to tell Packages to avoid downgrades?
- From: Matthias Schroeder <email@hidden>
- Date: Thu, 01 Aug 2013 09:59:13 +0200
Hi Stephane,
thanks a lot for your feedback, I will have a look at this.
Matthias
On 07/31/2013 02:16 PM, Stephane Sudre wrote:
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