From 7fba4e0df1768703ce657d8bf8200472c2dd825f Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 17 Nov 2017 00:46:34 +0100 Subject: allow multivalue fields in deb822 sources to be folded The documentation said "spaces", but there is no real reason to be so strict and only allow spaces to separate values as that only leads to very long lines if e.g. multiple URIs are specified which are again hard to deal with from a user PoV which the deb822 format is supposed to avoid. It also deals with multiple consecutive spaces and strange things like tabs users will surely end up using in the real world. The old behviour on encountering folded lines is the generation of URIs which end up containing all these whitespace characters which tends to mess really bad with output and further processing. Closes: 881875 --- doc/sources.list.5.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc/sources.list.5.xml') diff --git a/doc/sources.list.5.xml b/doc/sources.list.5.xml index 56f65927c..694082bea 100644 --- a/doc/sources.list.5.xml +++ b/doc/sources.list.5.xml @@ -101,9 +101,11 @@ Options have the same syntax as every other field: A fieldname separated by a colon (:) and optionally spaces from its value(s). - Note especially that multiple values are separated by spaces, not by - commas as in the one-line format. Multivalue fields like Architectures - also have Architectures-Add and Architectures-Remove + Note especially that multiple values are separated by whitespaces (like spaces, + tabs and newlines), not by commas as in the one-line format. + + Multivalue fields like Architectures also have + Architectures-Add and Architectures-Remove to modify the default value rather than replacing it. This is a new format supported by apt itself since version 1.1. Previous -- cgit v1.2.3