>>>>> On Wed, 03 Sep 2025, Immolo wrote: >> Could you use wildcards to shorten this list? (wrt profile listing)
> As this is my news item, I'd like to be clear that I understand before > moving forward. > Have I understood correctly that I could use wildcards to shorten the list > in the following manner? > Reduced original example: > Display-If-Profile: default/linux/alpha/23.0/desktop > Display-If-Profile: default/linux/alpha/23.0/desktop/gnome > Display-If-Profile: default/linux/alpha/23.0/desktop/gnome/systemd > Display-If-Profile: default/linux/alpha/23.0/split-usr/desktop > Display-If-Profile: default/linux/alpha/23.0/split-usr/desktop/gnome > Display-If-Profile: default/linux/amd64/23.0/desktop > Display-If-Profile: default/linux/amd64/23.0/desktop/gnome > Display-If-Profile: default/linux/amd64/23.0/desktop/gnome/systemd > Display-If-Profile: default/linux/amd64/23.0/desktop/systemd > Wildcard change example: > Display-If-Profile: default/linux/*.*/desktop > Display-If-Profile: default/linux/*.*/desktop/gnome > Display-If-Profile: default/linux/*.*/desktop/gnome/systemd > Display-If-Profile: default/linux/*.*/split-usr/desktop > Display-If-Profile: default/linux/*.*/split-usr/desktop/gnome > In my understanding this would cover both alpha and amd64 desktop profiles > rather > than needing to list every single one. No, that won't work. GLEP 42 says: "In news item format 2.0, a terminal asterisk immediately following a slash acts as a wildcard for any further path components, for example default/linux/*." For your example above, this means that you can use wildcards only for terminal path components, not for intermediate ones: Display-If-Profile: default/linux/alpha/23.0/desktop Display-If-Profile: default/linux/alpha/23.0/desktop/* Display-If-Profile: default/linux/alpha/23.0/split-usr/desktop Display-If-Profile: default/linux/alpha/23.0/split-usr/desktop/* Display-If-Profile: default/linux/amd64/23.0/desktop Display-If-Profile: default/linux/amd64/23.0/desktop/*
signature.asc
Description: PGP signature
