[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1031543: lintian: report error on whitespace-only lines in d/control



Package: lintian
Version: 2.116.3
Severity: normal

There are cases where trailing whitespaces are actually harmful and thus
lintian should emit more than just a pedantic trailing-whitespace tag.

If the stazas in debian/control are not separated by empty lines but
with witespace filled lines, grep-dctrl will error-out.

Example: falcosecurity-libs_0.1.1dev+git20220316.e5c53d64-5.dsc
...
P: falcosecurity-libs source: trailing-whitespace [debian/changelog:24]
P: falcosecurity-libs source: trailing-whitespace [debian/control:65]
P: falcosecurity-libs source: trailing-whitespace [debian/control:80]
P: falcosecurity-libs source: trailing-whitespace [debian/rules:51]
...

d/control line 65 is the problematic one

$ grep-dctrl -FDepends -e '(^| )dkms' -o -FPackage -e '\-dkms' debian/control -sPackage -n
grep-dctrl: debian/control:65: expected a colon.


Andreas


Reply to: