[wpkg-users] [Bug 262] Wrong variable apply order

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Fri Jan 13 17:49:24 CET 2012


http://bugzilla.wpkg.org/show_bug.cgi?id=262

Stefan Pendl <pendl2megabit at yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pendl2megabit at yahoo.de

--- Comment #10 from Stefan Pendl <pendl2megabit at yahoo.de>  ---
Keeping the current order of "read host -> read profile -> read package ->
apply", where the last variable read will override the previous variables, we
just need to change the Wiki to reflect this now defined read order.

To have a variable at a higher level override the ones below, a conditional
check needs to be added to the variable definitions on the lower levels.

I envision a check like below:

<!-- code start (watch for line wraps) -->

<variable name="MY_VAR" value="true">
  <condition>
    <check type="host" condition="environment" value="MY_VAR=^$"
  </condition>
</variable>

<!-- code end -->

Is this correct Rainer?

--
Stefan

-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the wpkg-users mailing list