Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
fix short ?predepends patterns
Browse files Browse the repository at this point in the history
also document ?recommends
  • Loading branch information
landfillbaby committed Apr 21, 2022
1 parent 7278226 commit 49650d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apt-pkg/cachefilter-patterns.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static const constexpr struct
{"c"_sv, "?config-files"_sv, false},
// FIXME: The words after ~D should be case-insensitive
{"DDepends:"_sv, "?depends"_sv, true},
{"DPre-Depends:"_sv, "?pre-depends"_sv, true},
{"DPreDepends:"_sv, "?predepends"_sv, true},
{"DSuggests:"_sv, "?suggests"_sv, true},
{"DRecommends:"_sv, "?recommends"_sv, true},
{"DConflicts:"_sv, "?conflicts"_sv, true},
Expand All @@ -40,7 +40,7 @@ static const constexpr struct
{"DEnhances:"_sv, "?enhances"_sv, true},
{"D"_sv, "?depends"_sv, true},
{"RDepends:"_sv, "?reverse-depends"_sv, true},
{"RPre-Depends:"_sv, "?reverse-pre-depends"_sv, true},
{"RPreDepends:"_sv, "?reverse-predepends"_sv, true},
{"RSuggests:"_sv, "?reverse-suggests"_sv, true},
{"RRecommends:"_sv, "?reverse-recommends"_sv, true},
{"RConflicts:"_sv, "?reverse-conflicts"_sv, true},
Expand Down
5 changes: 3 additions & 2 deletions doc/apt-patterns.7.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,15 @@
<variablelist>
<varlistentry>
<term><code>?depends(PATTERN)</code></term><term><code>~DPATTERN</code></term>
<term><code>?pre-depends(PATTERN)</code></term><term><code>~DPre-Depends:PATTERN</code></term>
<term><code>?predepends(PATTERN)</code></term><term><code>~DPreDepends:PATTERN</code></term>
<term><code>?suggests(PATTERN)</code></term><term><code>~DSuggests:PATTERN</code></term>
<term><code>?recommends(PATTERN)</code></term><term><code>~DRecommends:PATTERN</code></term>
<term><code>?conflicts(PATTERN)</code></term><term><code>~DConflicts:PATTERN</code></term>
<term><code>?replaces(PATTERN)</code></term><term><code>~DReplaces:PATTERN</code></term>
<term><code>?obsoletes(PATTERN)</code></term><term><code>~DObsoletes:PATTERN</code></term>
<term><code>?breaks(PATTERN)</code></term><term><code>~DBreaks:PATTERN</code></term>
<term><code>?enhances(PATTERN)</code></term><term><code>~DEnhances:PATTERN</code></term>
<listitem><para>Selects versions depending/pre-depending/suggesting/conflicting/etc on/with/ packages matching PATTERN.</para></listitem>
<listitem><para>Selects versions depending/pre-depending/suggesting/recommending/conflicting/etc on/with/ packages matching PATTERN.</para></listitem>
</varlistentry>
<varlistentry>
<term><code>?reverse-<replaceable>depType</replaceable>(PATTERN)</code></term>
Expand Down

0 comments on commit 49650d1

Please sign in to comment.