Package: lintian
Version: 2.5.30+deb8u4
Severity: normal
Dear Maintainer,
I created a vendor profile named main.profile with the following lines:
#start of profile file
Profile: test/main
Extends: debian/main
Disable-Tags: dir-or-file-in-opt
#end of profile file
I placed that file in the directory ~/.lintian/profiles/test
then ran:
lintian --profile test {path to a .deb file}
The output was:
Unknown field "disable-tags" in test/main (section 2) at
/usr/bin/lintian line 979.
If I remove the single blank line from the main.profile file, and run
the lintian
command again, the command succeeds.
The vendor profile example given in section 2.5.2.3 of the lintian
documentation
has a blank line in it. Also given that the man page for lintian says the
--tags-from-file and --suppress-tags-from-file options both ignore blank
lines, I was expecting vendor profiles to do the same.
I am assuming this is not the indended outcome, and is therefore a bug.
In case it is of interest, I first discovered this on a system running
debian wheezy, and lintian version 2.5.10.4 (the outcome was the same
both on wheezy and jessie).
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)