From c64a85dd7524546864603b955f601bf64c9a4bcf Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 15 Aug 2019 12:50:22 +0200 Subject: Add patterns for the existing CacheFilter::Matcher classes This implements the basic logic patterns: ?and ?false ?not ?or ?true and the basic package patterns: ?architecture ?name ?x-name-fnmatch --- doc/apt-patterns.7.xml | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/apt-patterns.7.xml b/doc/apt-patterns.7.xml index 079c493e4..5aa352f03 100644 --- a/doc/apt-patterns.7.xml +++ b/doc/apt-patterns.7.xml @@ -36,12 +36,46 @@ - Syntax + Logic patterns + + These patterns provide the basic means to combine other patterns into + more complex expressions, as well as ?true and ?false + patterns. + + ?and(PATTERN, PATTERN, ...) + Selects objects where all specified patterns match. + + ?false + Selects nothing. + + ?not(PATTERN) + Selects objects where PATTERN does not match. + + ?or(PATTERN, PATTERN, ...) + Selects objects where at least one of the specified patterns match. + + ?true + Selects all objects. + + + + + Package patterns + + These patterns select specific packages. + + + ?architecture(WILDCARD) + Selects packages matching the specified architecture, which may contain wildcards using any. + + ?name(REGEX) + Selects packages where the name matches the given regular expression. + - + Examples -- cgit v1.2.3-70-g09d2