L::Unpacker: Fix typo in POD

Signed-off-by: Niels Thykier <niels@thykier.net>
checks/*: Add missing "use Lintian::Data"

Also remove the "use Lintian::Data" in c/nmu as that particular one is
unused.

Signed-off-by: Niels Thykier <niels@thykier.net>
c/infofiles: Use open_gz instead of running zcat

Signed-off-by: Niels Thykier <niels@thykier.net>
L::Path: Resolve hardlinks relative to the package root

The index information (i.e. tar vt) always lists the hardlink target
relative to the package root.

Signed-off-by: Niels Thykier <niels@thykier.net>
L::Path: Remove unused import shadowing a class method

The import of dirname shadows the L::Path method of same name causing
the dirname method always to return "." (which in turn breaks
link_resolved on relative links).

Signed-off-by: Niels Thykier <niels@thykier.net>
c/scripts: Fix executable-not-elf-or-script false positive

... for executable hardlinks of scripts.  This issue was observed
in gzip/1.5-1.1 (bin/uncompress -> bin/gunzip).

Signed-off-by: Niels Thykier <niels@thykier.net>
L::Architecture: Handle aliases and improve doc

Properly handle that (e.g.) amd64 and linux-amd64 are considered
aliases.  Mention the handling of aliases in the POD doc and reference
relevant Policy sections.

Signed-off-by: Niels Thykier <niels@thykier.net>
c/infofiles: Remove unused variable

Signed-off-by: Niels Thykier <niels@thykier.net>
checks/*: Update the parameter handling of the run functions

Stylistic change to all run functions in checks to read parameters
like any other function/method in Lintian.  Also take the liberty of
"skipping" unused paramters.

Signed-off-by: Niels Thykier <niels@thykier.net>
c/fields: Retire no-source-field - it cannot be emitted

The tag "no-source-field" cannot be emitted by Lintian due to
dpkg-source/Dpkg::Source::Package, which refuses to extract a source
package missing (among others) the "Source" field.  This causes
collection/unpacked to fail and Lintian to skip the check of the
source package.

The tag cannot even be emitted via "-C fields" as checks/fields needs
"debfiles" (which depends on "unpacked").

Signed-off-by: Niels Thykier <niels@thykier.net>
Remove no-source-field from the auto-reject profile

Signed-off-by: Niels Thykier <niels@thykier.net>
c/md5sums: Correct path to the computed md5sums data file

Signed-off-by: Niels Thykier <niels@thykier.net>
lib: Fix typo in POD and add encoding hint

Also have generate-html-docs use UTF-8 as default encoding.

Signed-off-by: Niels Thykier <niels@thykier.net>
t: Rename and extend fields-section-udeb test

Signed-off-by: Niels Thykier <niels@thykier.net>
t: Add test for the last field tag

Signed-off-by: Niels Thykier <niels@thykier.net>
update-coverage: Track coverage of checks as well

Also fix the error message if update-coverage is run from the wrong
dir.

Signed-off-by: Niels Thykier <niels@thykier.net>
t: Add tests for the last changelog-file tags

Signed-off-by: Niels Thykier <niels@thykier.net>
t: Add tests for the last nmu tags

Signed-off-by: Niels Thykier <niels@thykier.net>
lintian: Make --jobs parameter optional

Signed-off-by: Niels Thykier <niels@thykier.net>
c/rules: Merge two if-branches and move out loop invariant

Signed-off-by: Niels Thykier <niels@thykier.net>