summaryrefslogtreecommitdiff
path: root/apt-pkg/cachefilter-patterns.h
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 /apt-pkg/cachefilter-patterns.h
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 'apt-pkg/cachefilter-patterns.h')
-rw-r--r--apt-pkg/cachefilter-patterns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/cachefilter-patterns.h b/apt-pkg/cachefilter-patterns.h
index 8317665bc..0d6e9d99e 100644
--- a/apt-pkg/cachefilter-patterns.h
+++ b/apt-pkg/cachefilter-patterns.h
@@ -96,6 +96,7 @@ struct PatternTreeParser
private:
std::unique_ptr<Node> parse();
std::unique_ptr<Node> parsePattern();
+ std::unique_ptr<Node> parseShortPattern();
std::unique_ptr<Node> parseWord();
std::unique_ptr<Node> parseQuotedWord();
};