[wpkg-users] hostname matching

Stefan Pendl stefan.pendl.71 at gmail.com
Mon Feb 22 17:42:31 CET 2021

Am 22.02.2021 um 14:52 schrieb Gerd Ott:
> Stefan Pendl schrieb:
>> Am 17.02.2021 um 20:18 schrieb Gerd Ott:
>>> Hi,
>>> Every now and then i have an issue with hosts installing software from a
>>> wrong profile.
>>> I found out that if you have a configuration like the following in the
>>> hosts.xml:
>>> <host hostname="bert" profile-id="win10_base" />
>>> <host hostname="liberti" profile-id="win10_advanced" />
>>> then host liberti will install all the packages of profile win10_base,
>>> because it finds "bert" before finding "liberti"
>>> Is this a misconfiguration or a bug?
>> It is a problem of your configuration.
>> WPKG uses regular expressions for matching.
>> If you need an exact match use "^bert$" instead of "bert".
>> For further information check
>> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
>> or the MSDN site.
>> Hope this helps.
> Thank you, that helped!
> I am using regular expressings in the hosts.xml in other sections, but
> thought wpkg would only match a regex-hostname, if  it does not find
> exact matching.
> See the bottom in https://wpkg.org/Regular_expression_support , might be
> outdated.

The most up to date description of how WPKG works is contained in the 
change log file shipping with WPKG.
The WPKG wiki is not updated regularly.

*Stefan P.*

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