summaryrefslogtreecommitdiff
path: root/apt-pkg/cachefilter-patterns.h
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-02-01 17:33:08 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-03 12:55:54 +0100
commit11a40ab11f72f85e905bdba4d3274870fbcaeaee (patch)
treea195af50ceeae4fbec2f558651aa5dbcf69ebe48 /apt-pkg/cachefilter-patterns.h
parent8886ea163032fb8bf64211a94c5dc252a4572a9c (diff)
Correctly stop parsing short form arguments on space, also on ?
we have to stop parsing on space so that things like ~ramd64 | ~rall work correctly. aptitude does not stop parsing on ?, but we'll do as it gets very confusing otherwise if you write stuff like ~ramd64?name(foo), and it resolves to ?and(?architecture(amd64?name), (foo))...
Diffstat (limited to 'apt-pkg/cachefilter-patterns.h')
-rw-r--r--apt-pkg/cachefilter-patterns.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/cachefilter-patterns.h b/apt-pkg/cachefilter-patterns.h
index 1b7e70da5..e79702af8 100644
--- a/apt-pkg/cachefilter-patterns.h
+++ b/apt-pkg/cachefilter-patterns.h
@@ -102,8 +102,8 @@ struct PatternTreeParser
std::unique_ptr<Node> parseGroup();
std::unique_ptr<Node> parsePattern();
std::unique_ptr<Node> parseShortPattern();
- std::unique_ptr<Node> parseArgument();
- std::unique_ptr<Node> parseWord();
+ std::unique_ptr<Node> parseArgument(bool shrt);
+ std::unique_ptr<Node> parseWord(bool shrt);
std::unique_ptr<Node> parseQuotedWord();
};