#1074039 autodep8: Assumes `Testsuite` is a single line

#1074039#5
Date:
2024-06-22 07:24:13 UTC
From:
To:
Hi,

I noted a regression in `autodep8` for `debhelper` where it would stop
finding autopkgtests for perl tests. The original automatic detection
logic inside autodep8 does not work for `debhelper` but it has tests
that work, so `debian/control` has an explicit `Testsuite:
autopkgtest-pkg-perl`.

While working with some formatting code, that line got rewritten to:

```
Testsuite:
  autopkgtest-pkg-perl
```

I thought nothing of it because this should be equally valid since
comma-separated fields are generally folded (whitespace / newlines are
not significant). However, `autodep8` does not match the test anymore.
Restoring the original formatting works around the problem.

The underlying problem seems to be `autodep8` assuming there is only one
token in `debian/control` and no surrounding spaces given the regexes
are always anchored with `^` and `$`.

This behavior contradicts Debian Policy manual (if that is a bug in
Policy, please file or forward the bug there), where the field is a
`comma-separated list` strongly implying multiple values may be present.
    Other comma-separated lists such as `Depends` and `Uploaders` are
generally folded (meaning newlines and whitespace are not considered
significant and largely removed by parsers). However, Policy is not
explicit here and maybe it should be. I will leave you to file a bug
against Policy if the field should be `simple` (no newlines allowed) or
`multiline` (newlines are allowed and whitespace is significant).

Again, if the conclusion is that the field should be simple, then please:

  1) clone and reassign to debian-policy to have that clarified
  2) reassign this bug back to debhelper to have it fix its
     `debian/control`

Otherwise, consider reassigning a clone to debian-policy if the wording
in Policy should be clarified in addition to the relevant fixing of
`autodep8`.

Best regards,
Niels

#1074039#10
Date:
2026-01-10 10:10:41 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.