From df46a87ab6b67019277884f7ae990af26080280d Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 7 Jan 2016 15:51:00 +0100 Subject: apt-helper: cat-file: Add -C/--compress option This allows passing compressing the output. The compressor must be a compressor name, extension, or an extension without the leading dot. --- apt-private/private-cmndline.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apt-private') diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc index 9234aa278..829085916 100644 --- a/apt-private/private-cmndline.cc +++ b/apt-private/private-cmndline.cc @@ -156,8 +156,12 @@ static bool addArgumentsAPTInternalSolver(std::vector &, char return true; } /*}}}*/ -static bool addArgumentsAPTHelper(std::vector &, char const * const)/*{{{*/ +static bool addArgumentsAPTHelper(std::vector &Args, char const * const Cmd)/*{{{*/ { + if (CmdMatches("cat-file")) + { + addArg('C', "compress", "Apt-Helper::Cat-File::Compress",CommandLine::HasArg); + } return true; } /*}}}*/ -- cgit v1.2.3