Package: debian-policy
Version: 3.9.8
I use the `wrap-and-sort` tool to keep my list of dependencies neatly
sorted and wrapped. In particular, I use the `-t` flag to have a
trailing comma at the end of the list. For example
Build-Depends:
foo,
bar,
Homepage: …
There, notice how there is a comma after "bar", the last item of the
list.
I've heard several people in several forums assert that such syntax is totally undocumented, despite being accepted by all tools I know of.
On Wed, Sep 06, 2017 at 08:55:45AM +0200, Mattia Rizzolo wrote:
No idea about apt, but dpkg's maintainer told me (shortly after having
filed this bug) that dpkg supported it basically since ever; quoting
him:
<guillem> mapreri: the trailing comma syntax *must* be supported,
otherwise things like «foo, ${substvar}» with an empty
substvar would break havoc
<guillem> mapreri: well dpkg does not accept it but the perl code does
and remove it before generating the DEBIAN/control files so
it's all good
<guillem> mapreri: I'll clarify the deb-src-control man page
So the syntax is supported in source control files but not in the binary ones?
I didn't even know this syntax was allowed, and now that I do I'd love
to use it.
Do you know how long this has worked, in apt and dpkg?
Andrey Rahmatullin <wrar@debian.org> writes:
On Wed, Sep 06, 2017 at 08:55:45AM +0200, Mattia Rizzolo wrote:
No idea about apt, but dpkg's maintainer told me (shortly after having
filed this bug) that dpkg supported it basically since ever; quoting
him:
<guillem> mapreri: the trailing comma syntax *must* be supported,
otherwise things like «foo, ${substvar}» with an empty
substvar would break havoc
<guillem> mapreri: well dpkg does not accept it but the perl code does
and remove it before generating the DEBIAN/control files so
it's all good
<guillem> mapreri: I'll clarify the deb-src-control man page
So the syntax is supported in source control files but not in the binary ones?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 84:01:07 |
Calls: | 6,658 |
Calls today: | 4 |
Files: | 12,203 |
Messages: | 5,333,599 |
Posted today: | 1 |