sysupdate: Add documentation for new MatchPattern behavior

This commit is contained in:
Valentin David 2023-09-24 17:30:41 +02:00
parent 8b051623cd
commit deafbeb0b9
No known key found for this signature in database
GPG key ID: 1496F0F95959AB6E

View file

@ -539,6 +539,11 @@
wildcard, so that a version identifier may be extracted from the filename. All other wildcards are
optional.</para>
<para>If the source type is <constant>regular-file</constant> or <constant>directory</constant>, the
pattern may contain slash characters. In this case it will match the file or directory in
corresponding subdirectory. For example <literal>MatchPattern=foo_@v/bar.efi</literal> will match
<literal>bar.efi</literal> in directory <literal>foo_1</literal>. </para>
<xi:include href="version-info.xml" xpointer="v251"/></listitem>
</varlistentry>
</variablelist>
@ -619,6 +624,12 @@
of new versions to install. If multiple patterns are specified, the first specified is used for
naming newly installed versions.</para>
<para>If the target type is <constant>regular-file</constant> or <constant>directory</constant>, the
pattern may contain slash characters. In this case it will match the file or directory in
corresponding subdirectory. For example <literal>MatchPattern=foo_@v/bar.efi</literal> will match
<literal>bar.efi</literal> in directory <literal>foo_1</literal>. Directories in the path will be
created when file is installed. Empty directories will be removed when file is removed.</para>
<xi:include href="version-info.xml" xpointer="v251"/></listitem>
</varlistentry>