[wpkg-users] Extend extended host attributes to //host/profile and //profile/depends nodes

Rainer Meier r.meier at wpkg.org
Tue Sep 6 11:18:47 CEST 2011


Hi Malte,

On 30.08.2011 15:45, Malte Starostik wrote:
> {Tried to use the bug tracker, but all I get after "Submit Bug" is: "The token
> you submitted does not exist, has expired, or has been canceled."}
>
> Hi,
>
> as per $SUBJECT, this adds extended host matching capabilities so one can
> write things like:
>
> <host profile-id="base">
>    <profile id="xp-only" os="windows xp"/>
> </host>
>
> <profile id="foo">
>    <depends profile-id="bar" architecture="x86"/>
> </profile>

I've just checked in version 1.2.1-RC12 which contains these changes. It's 
entirely untested yet, could you do some verification?

XSD files have been updated too.

Changes 2011-09-06, v1.2.1-RC12 by Rainer Meier <r.meier (at) wpkg.org>
NEW: Added full extended host attribute matching for <profile/> nodes in
      host definitions and <depends/> nodes in profile definitions.
      Some examples...

      Assigning profiles depending on extended host attribute matching:
      <host name="...">
      	<profile id="default" os="windows xp" architecture="x86" />
      	<profile id="default-x64" os="windows xp" architecture="x64" />
      </host>

      Of course the following is still possible too:
      <host name="..." profile-id="default-x64" architecture="x64" />

      Adding dependencies based on host attributes:
      <profile id="default">
      	<depends profile-id="default-x64" architecture="x64" />
      </profile>

      As a result the following nodes cannow deal with extended host matching:
      In hosts.xml:
      <host name="..." proifile-id="..." os="..." ... />
      <profile id="..." os="..." ... />
      <variable name="..." value="..." os="..." ... />

      In profiles.xml:
      <variable name="..." value="..." os="..." ... />
      <package package-id="..." os="..." ... />
      <depends profile-id="..." os="..." ... />

      In packages.xml:
      <variable name="..." value="..." os="..." ... />
      <depends package-id="..." os="..." />
      <include package-id="..." os="..." />
      <chain package-id="..." os="..." />
      <download url="..." target="..." os="..." />
      <install cmd="..." os="..." />
      <upgrade cmd="..." os="..." />
      <downgrade cmd="..." os="..." />
      <remove cmd="..." os="..." />

      Thanks to Malte Starostik for providing input.

br,
Rainer



More information about the wpkg-users mailing list