[wpkg-users] logical not with OS type?

Stefan Pendl stefan.pendl.71 at gmail.com
Mon Jan 16 18:25:10 CET 2012


Am 16.01.2012 17:43, schrieb David Petterson:
>
> This one does not work, 7zip does not get installed on my XP x64 as it
> should. It does not even try, and yes, the package works, thats why I
> picked the 7zip package.
>
> <profile id="7ziptest">
> <package package-id="7zip" >
> <condition>
> <check type="logical" condition="and">
> <check type="host" condition="os" value="5\.2\.\d{4}"/>
> </check>
> </condition>
> </package>
> </profile>
>
> Any thoughts?
>

Since there is only one check condition the logical AND makes no sense 
at all.

The new WPKG 1.3.0 syntax:

'---code start (watch for line wraps)

<profile id="7ziptest">
  <package package-id="7zip" >
   <condition>
    <check type="host" condition="os" value="5\.2\.\d{4}"/>
   </condition>
  </package>
</profile>

'---code end


The short WPKG 1.2.x and above syntax:

'---code start (watch for line wraps)

<profile id="7ziptest">
  <package package-id="7zip" os="5\.2\.\d{4}"/>
</profile>

'---code end


--
Stefan P.

Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



More information about the wpkg-users mailing list