[wpkg-users] [Bug 209] Replace variables in package revisions by their value in local wpkg.xml file

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Sat Jul 9 17:24:11 CEST 2011


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

--- Comment #14 from Rainer Meier <r.meier at wpkg.org>  ---
Just fixed another issue with LCID matching which caused some variable scope
clash in WSH (maybe WSH bug). If WSH for loops are nested and internal for loop
uses same local variable it overwrites the outer for loop variable:

for (var i=0; i<x; i++) {
  for (var i=0; i<y; i++) {
  }
}
The inner for loop will change "i" of the outer one.

Worked around by simply renaming variables.

FIX: Worked around a WSH issue of variable scopes in for loops.
     Fixes LCID handling of extended host matches.


About your statement made on the mailing list:

"The "name" attribute is used by the host and package definition, so there is a
special case already in either way."

This is not the case if "hostname" is used to match extended host matching.
This is the current implementation now. So name (which is too common anyway) is
used in any xml node, then it will not collide with extended attribute matches.

-- 
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