<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 01.11.2013 14:35, schrieb Jáder
Marasca:<br>
</div>
<blockquote
cite="mid:CAN2XfyrufPYhsA-md3ZOjmwWmA1Hi57f6ASicXYfSAdDDCq3UA@mail.gmail.com"
type="cite">
<div dir="ltr">Stefan
<div><br>
</div>
<div>Thanks by your quick ansser... but I´m not sure if I
understood it.</div>
<div>I have a Java7 package as from wiki page.</div>
<div>I´ll update it to include the new verification.</div>
<div><br>
</div>
<div>It will became something like to avoid install on hostname
"PC-MICHELE":</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>(...)</div>
<div> name="Java Runtime Environment 7"</div>
<div> revision="%version%"</div>
<div> reboot="false"</div>
<div> priority="100"></div>
<div><b> <condition></b></div>
<div><b> <check type="logical"
condition="not"></b></div>
<div><b> <check type="host"
condition="hostname" value="PC-MICHELE"/></b></div>
<div><b> </check></b></div>
<div><b> </condition></b></div>
<div><br>
</div>
<br>
</div>
</div>
</blockquote>
No, that doesn't work as you may think and it is not supported
either.<br>
<br>
There are multiple ways to exclude a package.<br>
<br>
In my case I add the "Java" package to all profiles and that package
will decide which Java version to install.<br>
This will reduce the need to add host checks to one spot.<br>
<br>
Since I don't know your WPKG structure it is hard to tell what would
be the best way for you.<br>
<br>
If you have one common profile, you can exclude the host in that
profile, so you only need the "Java7" package.<br>
<br>
If you have no common profile, you would end up with two packages,
"Java" and "Java7", where "Java" is included in every profile and it
will decide if "Java7" needs to be installed.<br>
<br>
Make sure to read the change log file shipping with WPKG, so you
know what is really supported.<br>
<pre class="moz-signature" cols="72">
--
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?</pre>
</body>
</html>