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

Rainer Meier r.meier at wpkg.org
Thu Jan 26 22:12:02 CET 2012


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



More information about the wpkg-users mailing list