[wpkg-users] Conditional depends

Daniel Berteaud daniel at firewall-services.com
Thu Oct 18 13:43:55 CEST 2012


Le jeudi 18 octobre 2012 à 13:31 +0200, Stefan Pendl a écrit :

> I have a common package called Java, which gets added to all systems or 
> included as a dependency.
> 
> The package is then including the correct java runtime engine based on 
> conditions.
> 
> 
> '---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

Thanks for the suggestion, I'll try to play with this. (my problem is
that workstations which needs JRE6 are not a specific Windows version,
so I cannot use the os attr)

Regards, Daniel

-- 
Daniel Berteaud
FIREWALL-SERVICES SARL.
Société de Services en Logiciels Libres
Technopôle Montesquieu
33650 MARTILLAC
Tel : 05 56 64 15 32
Fax : 05 56 64 15 32
Web : http://www.firewall-services.com




More information about the wpkg-users mailing list