summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-01-07 15:51:00 +0100
committerJulian Andres Klode <jak@debian.org>2016-01-07 15:51:00 +0100
commitdf46a87ab6b67019277884f7ae990af26080280d (patch)
tree50b7a2b946246b40ca0c08e83c3f99c5e32d30e9 /apt-private
parente3fbd54cee3fffecbf4f7c384e0aad715fc68218 (diff)
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.
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-cmndline.cc6
1 files changed, 5 insertions, 1 deletions
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<CommandLine::Args> &, char
return true;
}
/*}}}*/
-static bool addArgumentsAPTHelper(std::vector<CommandLine::Args> &, char const * const)/*{{{*/
+static bool addArgumentsAPTHelper(std::vector<CommandLine::Args> &Args, char const * const Cmd)/*{{{*/
{
+ if (CmdMatches("cat-file"))
+ {
+ addArg('C', "compress", "Apt-Helper::Cat-File::Compress",CommandLine::HasArg);
+ }
return true;
}
/*}}}*/