[wpkg-users] Negative Dependency

Stefan Pendl stefan.pendl.71 at gmail.com
Fri Oct 26 20:56:20 CEST 2012


Am 26.10.2012 20:43, schrieb Geoff Brown:
> Reposted from Stefan (as an example):
>
> '---code start (watch for line wraps)
>
> <package id="Java" name="Java" revision="2011.10.22" reboot="false" priority="10" execute="once">
>     <include package-id="JRE6" os="5\.0\.\d{4}"/>
>     <include package-id="JRE7">
>         <condition>
>             <check type="logical" condition="not">
>                 <check type="host" condition="os" value="5\.0\.\d{4}"/>
>             </check>
>         </condition>
>     </include>
> </package>
>
> '---code end
>

You may want to use a uninstall check for applications.

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

<depends package-id="LibreOffice">
     <condition>
         <check type="logical" condition="not">
             <check type="uninstall" condition="exists"
                 path="Microsoft Office .*" />
         </check>
     </condition>
</depends>

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