From fd43b1694f1382a3a47f5dc546ebe3d39fcd6e7d Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 20 Jan 2020 14:14:49 +0100 Subject: 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. --- doc/apt-patterns.7.xml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'doc') 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 @@ ?and(PATTERN, PATTERN, ...) Selects objects where all specified patterns match. - ?false + ?false~F Selects nothing. ?not(PATTERN) @@ -55,7 +55,7 @@ ?or(PATTERN, PATTERN, ...) Selects objects where at least one of the specified patterns match. - ?true + ?true~T Selects all objects. @@ -83,40 +83,40 @@ These patterns select specific packages. - ?architecture(WILDCARD) + ?architecture(WILDCARD)~rWILDCARD Selects packages matching the specified architecture, which may contain wildcards using any. - ?automatic + ?automatic~M Selects packages that were installed automatically. - ?broken + ?broken~b Selects packages that have broken dependencies. - ?config-files + ?config-files~c Selects packages that are not fully installed, but have solely residual configuration files left. - ?essential + ?essential~E Selects packages that have Essential: yes set in their control file. ?exact-name(NAME) Selects packages with the exact specified name. - ?garbage + ?garbage~g Selects packages that can be removed automatically. - ?installed + ?installed~i Selects packages that are currently installed. - ?name(REGEX) + ?name(REGEX)~nREGEX Selects packages where the name matches the given regular expression. - ?obsolete + ?obsolete~o Selects packages that no longer exist in repositories. - ?upgradable + ?upgradable~U Selects packages that can be upgraded (have a newer candidate). - ?virtual + ?virtual~v 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. @@ -129,22 +129,22 @@ These patterns select specific versions of a package. - ?archive(REGEX) + ?archive(REGEX)~AREGEX Selects versions that come from the archive that matches the specified regular expression. Archive, here, means the values after a= in apt-cache policy. - ?origin(REGEX) + ?origin(REGEX)~OREGEX Selects versions that come from the origin that matches the specified regular expression. Origin, here, means the values after o= in apt-cache policy. - ?section(REGEX) + ?section(REGEX)~sREGEX Selects versions where the section matches the specified regular expression. - ?source-package(REGEX) + ?source-package(REGEX)~eREGEX Selects versions where the source package name matches the specified regular expression. ?source-version(REGEX) Selects versions where the source package version matches the specified regular expression. - ?version(REGEX) + ?version(REGEX)~VREGEX Selects versions where the version string matching the specified regular expression. -- cgit v1.2.3