summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-11-26 11:34:34 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2019-11-26 11:34:34 +0100
commit6801e6d2c63d4ff087024fc84a0feb8aef86886b (patch)
tree2be0ce13c2500b4113c3ba721ec6cfaca3706287 /doc
parent02b0afd5098534eff34a8fa1d44454c7a3e1ff09 (diff)
patterns: Add ?any-version
Diffstat (limited to 'doc')
-rw-r--r--doc/apt-patterns.7.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/apt-patterns.7.xml b/doc/apt-patterns.7.xml
index 5f0298f17..102ed3901 100644
--- a/doc/apt-patterns.7.xml
+++ b/doc/apt-patterns.7.xml
@@ -61,6 +61,17 @@
</variablelist>
</refsect1>
<refsect1>
+ <title>Narrowing patterns</title>
+ <para>
+ </para>
+ <variablelist>
+ <varlistentry><term><code>?any-version(PATTERN)</code></term>
+ <listitem><para>Selects any version where the pattern matches on the version.</para>
+ <para>For example, while <code>?and(?version(1),?version(2))</code> matches a package which has one version containing 1 and one version containing 2, <code>?any-version(?and(?version(1),?version(2)))</code> restricts the <code>?and</code> to act on the same version.</para></listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+ <refsect1>
<title>Package patterns</title>
<para>
These patterns select specific packages.