summaryrefslogtreecommitdiff
path: root/doc/external-dependency-solver-protocol.txt
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2017-03-19 13:53:33 +0100
committerJulian Andres Klode <jak@debian.org>2017-04-25 20:55:24 +0200
commitc75620dcfa749f8030e0180df44eec746402885d (patch)
treef8ff66ba95e19f4543cbf0fd33412041dbf58996 /doc/external-dependency-solver-protocol.txt
parent0c42bab8534b4dc95dabdff2a8e08a3574291ec0 (diff)
downloadapt-c75620dcfa749f8030e0180df44eec746402885d.tar.gz
Fix and avoid quoting in CommandLine::AsString
In the intended usecase where this serves as a hack there is no problem with double/single quotes being present as we write it to a log file only, but nowadays our calling of apt-key produces a temporary config file containing this "setting" as well and suddently quoting is important as the config file syntax is allergic to it. So the fix is to ignore all quoting whatsoever in the input and just quote (with singles) the option values with spaces. That gives us 99% of the time the correct result and the 1% where the quote is an integral element of the option … doesn't exist – or has bigger problems than a log file not containing the quote. Same goes for newlines in values. LP: #1672710 (cherry picked from commit 2ce15bdeac6ee93faefd4b42b57f035bef80c567)
Diffstat (limited to 'doc/external-dependency-solver-protocol.txt')
0 files changed, 0 insertions, 0 deletions