thanks for clarifying

can anyone tell me if package dependency, conflicts, and supercedes has changed 
or been eliminated? there is mention in the wiki that an older format is no 
longer support for this. actually, it would be very helpful if there was a 
document describing the XML schema? That way i could just code this interface 
to that spec. Does that exist?



----- Original Message -----
From: "Rainer Meier" <[email protected]>
To: "W. Chris Shank" <[email protected]>
Cc: [email protected]
Sent: Sunday, December 14, 2008 2:04:03 PM GMT -05:00 US/Canada Eastern
Subject: Re: [wpkg-users] nested check logic

Hi Chris,

W. Chris Shank wrote:
> does WPKG support nested check condition logic? for instance - something
> like this:
> 
> check type=logical condition=or
>   check file A exists
>   check file B exists
>            check type=logical condition=and
>                      check file=C exists
>                      check file=D exists
> 
> so in order for the condition to return true - files C and D would both
> be needed and either A or B
> 
> I'm asking because I'm working on an interface to build packages and
> associate them to machines and profiles in such a way that it will make
> managing a large number of machines much easier. the logic for
> manipulating the check conditions is a little tricky so before i go
> through all the hassle of coding it I want to make sure the resultant
> XML is going to be parsed correctly. if WPKG only supports one level of
> logic that's OK too. i just don't want to waste time on the interface if
> its not supported.

In your case "check type=logical condition=and" seems to be a sub-check
of "check type=logical condition=or". So either A, B or C & D needs to
be true in order to yield true at the end.

WPKG supports multiple levels of logical checks. In your case it first
evaluates A, if A is true then all following checks can be skipped
(return will be true).

If A is false it evaluates B and stops if B is true.

If A and B all were false, then it evaluates C and D and both need to
yield ture in order to yield true to the upper logical check.

br,
Rainer

-- 
-- 
W. Chris Shank 
ACE Technology Group 
www.myRemoteITdept.com 
 

-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to