[wpkg-users] Greetings and some questions about wpkg

laurent COOPER laurent.cooper at ac-grenoble.fr
Tue Oct 1 10:32:45 CEST 2013


Hello everybody.

New to wpkg and to this list also, I've read the wiki and have some questions. 
I'm sure wpkg experts can answer them quite easely.

** First, about the hosts.xml file

http://wpkg.org/Hosts.xml

I've read this sentence :
----
Normally, hosts are parsed from top to the bottom, except when the hostname is not a regular expression. So the host bronek1 will match profile1, even though it also matches b.+ and bron.+ (which are regular expressions).
----

There is a thing I don't understand. When the hosts file is parsed, does the parser use the first match for the host and use its profiles, or does the parser use all matching profiles

For example, if I have 
<host name="b.+" profile-id="profile1" />
<host name="bron.+" profile-id="profile2" />

and the host bronie

will it match the first and use only profile1
OR
will it match both and use profile1 AND profile2 ?

Can I have also two entries for the same host ?
<host name="bronie" profile-id="profile1"/>
<host name="bronie" profile-id="profile2"/>

will it give 
  - an error
  - only profile 2
  - only profile 1
  - both profiles

** About the packages...

I'd rather keep individual packages for my networks. Is there a way to have them in subdirectories

packages / sub1/ ...
	/ sub2 / ...

or is it only possible to have one packages directory ?

I thank you all for reading so far.

Cheers

Laurent
--
laurent COOPER
CARMI de l'académie de Grenoble
laurent.cooper at ac-grenoble.fr










More information about the wpkg-users mailing list