summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-01-20 14:14:49 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-03 12:55:54 +0100
commitfd43b1694f1382a3a47f5dc546ebe3d39fcd6e7d (patch)
treef8a54edcd442f81a69c9603f4c6bdfb722af95f0 /doc
parentd9c4c1d88ae6c42fee0f2da3a5b9669187fc2fc5 (diff)
Implement short patterns (patterns starting with ~)
Also make pattern detector in cacheset and private's list accept such patterns. We probably should just try to parse and see if it is a (start of a) pattern.
Diffstat (limited to 'doc')
-rw-r--r--doc/apt-patterns.7.xml36
1 files changed, 18 insertions, 18 deletions
diff --git a/doc/apt-patterns.7.xml b/doc/apt-patterns.7.xml
index b94a9b226..f18fe6a19 100644
--- a/doc/apt-patterns.7.xml
+++ b/doc/apt-patterns.7.xml
@@ -46,7 +46,7 @@
<varlistentry><term><code>?and(PATTERN, PATTERN, ...)</code></term>
<listitem><para>Selects objects where all specified patterns match.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?false</code></term>
+ <varlistentry><term><code>?false</code></term><term><code>~F</code></term>
<listitem><para>Selects nothing.</para></listitem>
</varlistentry>
<varlistentry><term><code>?not(PATTERN)</code></term>
@@ -55,7 +55,7 @@
<varlistentry><term><code>?or(PATTERN, PATTERN, ...)</code></term>
<listitem><para>Selects objects where at least one of the specified patterns match.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?true</code></term>
+ <varlistentry><term><code>?true</code></term><term><code>~T</code></term>
<listitem><para>Selects all objects.</para></listitem>
</varlistentry>
</variablelist>
@@ -83,40 +83,40 @@
These patterns select specific packages.
</para>
<variablelist>
- <varlistentry><term><code>?architecture(WILDCARD)</code></term>
+ <varlistentry><term><code>?architecture(WILDCARD)</code></term><term><code>~rWILDCARD</code></term>
<listitem><para>Selects packages matching the specified architecture, which may contain wildcards using any.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?automatic</code></term>
+ <varlistentry><term><code>?automatic</code></term><term><code>~M</code></term>
<listitem><para>Selects packages that were installed automatically.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?broken</code></term>
+ <varlistentry><term><code>?broken</code></term><term><code>~b</code></term>
<listitem><para>Selects packages that have broken dependencies.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?config-files</code></term>
+ <varlistentry><term><code>?config-files</code></term><term><code>~c</code></term>
<listitem><para>Selects packages that are not fully installed, but have solely residual configuration files left.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?essential</code></term>
+ <varlistentry><term><code>?essential</code></term><term><code>~E</code></term>
<listitem><para>Selects packages that have Essential: yes set in their control file.</para></listitem>
</varlistentry>
<varlistentry><term><code>?exact-name(NAME)</code></term>
<listitem><para>Selects packages with the exact specified name.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?garbage</code></term>
+ <varlistentry><term><code>?garbage</code></term><term><code>~g</code></term>
<listitem><para>Selects packages that can be removed automatically.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?installed</code></term>
+ <varlistentry><term><code>?installed</code></term><term><code>~i</code></term>
<listitem><para>Selects packages that are currently installed.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?name(REGEX)</code></term>
+ <varlistentry><term><code>?name(REGEX)</code></term><term><code>~nREGEX</code></term>
<listitem><para>Selects packages where the name matches the given regular expression.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?obsolete</code></term>
+ <varlistentry><term><code>?obsolete</code></term><term><code>~o</code></term>
<listitem><para>Selects packages that no longer exist in repositories.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?upgradable</code></term>
+ <varlistentry><term><code>?upgradable</code></term><term><code>~U</code></term>
<listitem><para>Selects packages that can be upgraded (have a newer candidate).</para></listitem>
</varlistentry>
- <varlistentry><term><code>?virtual</code></term>
+ <varlistentry><term><code>?virtual</code></term><term><code>~v</code></term>
<listitem><para>Selects all virtual packages; that is packages without a version.
These exist when they are referenced somewhere in the archive,
for example because something depends on that name.</para></listitem>
@@ -129,22 +129,22 @@
These patterns select specific versions of a package.
</para>
<variablelist>
- <varlistentry><term><code>?archive(REGEX)</code></term>
+ <varlistentry><term><code>?archive(REGEX)</code></term><term><code>~AREGEX</code></term>
<listitem><para>Selects versions that come from the archive that matches the specified regular expression. Archive, here, means the values after <code>a=</code> in <command>apt-cache policy</command>.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?origin(REGEX)</code></term>
+ <varlistentry><term><code>?origin(REGEX)</code></term><term><code>~OREGEX</code></term>
<listitem><para>Selects versions that come from the origin that matches the specified regular expression. Origin, here, means the values after <code>o=</code> in <command>apt-cache policy</command>.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?section(REGEX)</code></term>
+ <varlistentry><term><code>?section(REGEX)</code></term><term><code>~sREGEX</code></term>
<listitem><para>Selects versions where the section matches the specified regular expression.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?source-package(REGEX)</code></term>
+ <varlistentry><term><code>?source-package(REGEX)</code></term><term><code>~eREGEX</code></term>
<listitem><para>Selects versions where the source package name matches the specified regular expression.</para></listitem>
</varlistentry>
<varlistentry><term><code>?source-version(REGEX)</code></term>
<listitem><para>Selects versions where the source package version matches the specified regular expression.</para></listitem>
</varlistentry>
- <varlistentry><term><code>?version(REGEX)</code></term>
+ <varlistentry><term><code>?version(REGEX)</code></term><term><code>~VREGEX</code></term>
<listitem><para>Selects versions where the version string matching the specified regular expression.</para></listitem>
</varlistentry>
</variablelist>