From eb1e6fc4973a844adbea0297c6425b00f64e8b7b Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 26 Apr 2022 21:33:16 +0200 Subject: Rewrite hidden config option checker for more patterns The previous version allowed only foo::*::bar as a pattern, now you can have as many starred parts as you want allowing for a finer control instead of hardcoding specific common star-values or giving up with **. It also adds a new INVALID type for an option to mark options which should not be used, but are covered by a pattern which would normally allow it. Our tests are more or less the only users of this hidden feature making this change not very risky even through it has no dedicated test itself. --- doc/examples/configure-index | 49 ++++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 13 deletions(-) (limited to 'doc/examples') diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 6723a48da..1b165702d 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -184,18 +184,16 @@ APT Error-Mode ""; }; - /* define a new supported compressor on the fly - Compressor::rev { - Name "rev"; - Extension ".reversed"; - Binary "rev"; - CompressArg {}; - UncompressArg {}; - Cost "10"; - }; - */ Compressor ""; - Compressor::** ""; + // define a new compressor on the fly, like the super-compressor: /usr/bin/rev + Compressor::* { + Name ""; // rev + Extension ""; // .reversed + Binary ""; // rev + CompressArg ""; // {} + UncompressArg ""; // {} + Cost ""; // 10 + }; Authentication { @@ -584,6 +582,9 @@ Debug Acquire::Ftp ""; // Show ftp command traffic Acquire::Http ""; // Show http command traffic Acquire::Https ""; // Show https debug + Acquire::tor ""; + Acquire::tor+http ""; + Acquire::tor+https ""; Acquire::gpgv ""; // Show the gpgv traffic Acquire::cdrom ""; // Show cdrom debug output Acquire::Transaction ""; @@ -819,10 +820,31 @@ acquire::max-pipeline-depth ""; acquire::progress::diffpercent ""; acquire::gzipindexes ""; acquire::indextargets::randomized ""; -acquire::indextargets::deb::** ""; -acquire::indextargets::deb-src::** ""; +acquire::indextargets::* "" { + * { + MetaKey ""; + ShortDescription ""; + Description ""; + flatMetaKey ""; + flatDescription ""; + Identifier ""; + DefaultEnabled ""; + Optional ""; + KeepCompressed ""; + PDiffs ""; + By-Hash ""; + Fallback-Of ""; + CompressionTypes ""; + KeepCompressedAs ""; + }; +}; acquire::progress::ignore::showerrortext ""; acquire::*::dl-limit ""; // catches file: and co which do not have these +acquire::file::dl-limit ""; +acquire::copy::dl-limit ""; +acquire::gpgv::dl-limit ""; +acquire::store::dl-limit ""; +acquire::mirror::dl-limit ""; methods::mirror::problemreporting ""; acquire::http::proxyautodetect ""; acquire::http::proxy-auto-detect ""; @@ -900,6 +922,7 @@ APT::Internal::OpProgress::EraseLines ""; APT::Color ""; APT::Color::Show::Field ""; APT::Color::Show::Package ""; +APT::Color::* ""; update-manager::always-include-phased-updates ""; update-manager::never-include-phased-updates ""; -- cgit v1.2.3-70-g09d2