Bug#679132: lintian: false positive on package-uses-local-diversion when --local and --package are not given
Package: lintian
Version: 2.5.9
Severity: normal
When you use a dpkg-divert invocation like this one:
dpkg-divert --rename --divert $file.original --add $file
Lintian triggers an error package-uses-local-diversion. But this error is
wrong since those calls are in maintainer scripts and thus
DPKG_MAINTSCRIPT_PACKAGE is set. When --package and --local are both
missing, and when $DPKG_MAINTSCRIPT_PACKAGE is set, dpkg-divert assumes
--package $DPKG_MAINTSCRIPT_PACKAGE.
This is the case since dpkg 1.16.0 (i.e. since wheezy's dpkg).
-- System Information:
Debian Release: wheezy/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (150, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.4-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lintian depends on:
ii binutils 2.22-6.1
ii bzip2 1.0.6-3
ii diffstat 1.55-3
ii file 5.11-1
ii gettext 0.18.1.1-9
ii hardening-includes 2.2
ii intltool-debian 0.35.0+20060710.1
ii libapt-pkg-perl 0.1.26+b1
ii libc-bin 2.13-33
ii libclass-accessor-perl 0.34-1
ii libclone-perl 0.31-1+b2
ii libdpkg-perl 1.16.5+0~1339924755.72~1.gbp0ede94
ii libemail-valid-perl 0.190-1
ii libipc-run-perl 0.91-1
ii libparse-debianchangelog-perl 1.2.0-1
ii libtimedate-perl 1.2000-1
ii liburi-perl 1.60-1
ii locales 2.13-33
ii man-db 2.6.2-1
ii patchutils 0.3.2-1.1
ii perl [libdigest-sha-perl] 5.14.2-12
ii unzip 6.0-6
lintian recommends no packages.
Versions of packages lintian suggests:
pn binutils-multiarch <none>
ii dpkg-dev 1.16.5+0~1339924755.72~1.gbp0ede94
ii libhtml-parser-perl 3.69-2
ii libtext-template-perl 1.45-2
ii man-db 2.6.2-1
ii xz-utils 5.1.1alpha+20120614-1
-- no debconf information
Reply to: