Re: Required Packages in Distributions?
Re: Required Packages in Distributions?
- Subject: Re: Required Packages in Distributions?
- From: Christopher Ryan <email@hidden>
- Date: Wed, 30 Nov 2005 07:21:39 -0800
There is no "required" bit in distributions, but it is rather a
combination of setting the enabled and selected bits correctly.
For example:
<choice id='requiredChoice'
start_enabled='false'
start_selected='true'
title='required choice'/>
This would create a choice named "required choice" that is selected
(checked), but disabled, which has the same behavior of "required."
Of course, enabled and selected can be javascript and only require an
item "dynamically."
<choice id='requiredChoice'
start_selected='choiceSelected()'
start_enabled='choiceEnabled()'
title='required choice'/>
<script>
function checkRAMRequirement(RAM) {
var requiredRAM = (RAM * 1024 * 1024);
var actualRAM = system.sysctl('hw.memsize');
return (actualRAM > requiredRAM);
}
function choiceEnabled(){
if(checkRAMRequirement(2048))
return false;
return true;
}
function choiceSelected(){
if(checkRAMRequirement(2048))
return true;
return false;
}
</script>
Chris
Hi,
I've been following the thread on required packages in metapackages
and was wondering if the same can be done with distributions.
Thanks!
Karl Schramm
_______________________________________________
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