[wpkg-users] Setting a variable in a profile doesnt over-rides that set in a package

Ronny ladiko at web.de
Thu Jan 26 23:03:49 CET 2012



Am 26.01.2012 22:12, schrieb Rainer Meier:
> Hi Ronny,
>
> On 26.01.2012 18:58, Ronny wrote:
>> does someone else know why the variable isn't overriden by the 
>> profile-assigned
>> variable and it is still using the package-assigned variable? I don't 
>> find the
>> reason.
>
> Initially this was changed intentionally for WPKG 1.3.0 since variable 
> expansion in WPKG 1.2.0 was not clearly defined and could yield 
> various results depending on package and profile structure. 
> Unfortunately I thought by myself it would be better to override 
> host/profile variables by packages while some people seem to prefer 
> overriding package variables on host/profile level.
>
> I re-thought about the issue and meanwhile I tend to agree that this 
> is often more comfortable.
>
> So I have reverted it (while keeping the implementation which clearly 
> defines expansion order now). Results are available on SVN. WPKG 
> version 1.3.1-RC2. See entire discussion in 
> <http://bugzilla.wpkg.org/show_bug.cgi?id=262>.
>
> Moreover I've implemented checks to allow checking for empty/undefined 
> variables. So one could still prevent package/host to overwrite a 
> package variable if required.
>
> I hope this clarifies the situation.
>
>
> br,
> Rainer
Hello Rainer,

this is a good news. What about a config-variable which defines the 
order in which they are resolved? something like:

<param name='VariableResolveOrder' value='host,profile,package' />

or at least something like <param name='OverrideVariablesBy' 
value='package' />

Regards and thank you
Ronny



More information about the wpkg-users mailing list