Bug#814521: lintian: package-installs-apt-preferences and package-installs-apt-sources report duplicates
Package: lintian
Version: 2.5.40.2
Severity: normal
Getting an error was expected (this package enforces standard configurations such as APT sources and preferences onto all my hosts):
E: funkyware-common: package-installs-apt-preferences etc/apt/preferences.d/
E: funkyware-common: package-installs-apt-preferences etc/apt/preferences.d/funkyware.pref
E: funkyware-common: package-installs-apt-sources etc/apt/sources.list.d/
E: funkyware-common: package-installs-apt-sources etc/apt/sources.list.d/funkyware.list
... but reporting both the directory and the file itself seems excessive. What I would instead suggest that Lintian prints in such cases:
E: funkyware-common: package-installs-apt-preferences etc/apt/preferences.d/funkyware.pref
E: funkyware-common: package-installs-apt-sources etc/apt/sources.list.d/funkyware.list
Basically, reporting the mere presence of the directory in the package seems excessive. As long as the package doesn't ship any file in its etc/apt/preferences.d/ or etc/apt/sources.list.d/, Lintian should ignore it.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (800, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages lintian depends on:
ii binutils 2.26-3
ii bzip2 1.0.6-8
ii diffstat 1.61-1
ii file 1:5.25-2
ii gettext 0.19.7-2
ii hardening-includes 2.8+nmu2
ii intltool-debian 0.35.0+20060710.4
ii libapt-pkg-perl 0.1.29+b5
ii libarchive-zip-perl 1.56-2
ii libclass-accessor-perl 0.34-1
ii libclone-perl 0.38-1+b1
ii libdpkg-perl 1.18.4
ii libemail-valid-perl 1.198-1
ii libfile-basedir-perl 0.07-1
ii libipc-run-perl 0.94-1
ii liblist-moreutils-perl 0.413-1+b1
ii libparse-debianchangelog-perl 1.2.0-8
ii libperl5.22 [libdigest-sha-perl] 5.22.1-7
ii libtext-levenshtein-perl 0.13-1
ii libtimedate-perl 2.3000-2
ii liburi-perl 1.71-1
ii man-db 2.7.5-1
ii patchutils 0.3.4-1
ii perl 5.22.1-7
ii t1utils 1.39-2
ii xz-utils 5.1.1alpha+20120614-2.1
Versions of packages lintian recommends:
ii dpkg 1.18.4
ii libperlio-gzip-perl 0.19-1+b1
ii perl 5.22.1-7
ii perl-modules-5.22 [libautodie-perl] 5.22.1-7
Versions of packages lintian suggests:
pn binutils-multiarch <none>
ii dpkg-dev 1.18.4
ii libhtml-parser-perl 3.72-1
pn libtext-template-perl <none>
pn libyaml-perl <none>
-- no debconf information
Reply to: