Bug#528660: lintian: diversion-for-unknown-file fails with shell variables
Package: lintian
Version: 2.2.8
Severity: normal
My debian/preinst script has the following:
divert_file () {
dpkg-divert --package server-web --divert $1.dpkg-orig $1
}
And lintian complains with:
E: server-web: diversion-for-unknown-file $1 preinst:4
N:
N: The maintainer script adds a diversion for a file that is not provided
N: by this package.
N:
N: Severity: important, Certainty: certain
N:
This should be downgraded to a "possible" as it is incorrect in this case.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages lintian depends on:
ii binutils 2.19.1-1 The GNU assembler, linker and bina
ii diffstat 1.46-1 produces graph of changes introduc
ii dpkg-dev 1.14.25 Debian package development tools
ii file 5.00-1 Determines file type using "magic"
ii gettext 0.17-6 GNU Internationalization utilities
ii intltool-debian 0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii libipc-run-perl 0.82-1 Perl module for running processes
ii libparse-debianchangel 1.1.1-2 parse Debian changelogs and output
ii libtimedate-perl 1.1600-9 Time and date functions for Perl
ii liburi-perl 1.37+dfsg-1 Manipulates and accesses URI strin
ii man-db 2.5.5-1 on-line manual pager
ii perl [libdigest-sha-pe 5.10.0-19 Larry Wall's Practical Extraction
lintian recommends no packages.
Versions of packages lintian suggests:
pn binutils-multiarch <none> (no description available)
pn libtext-template-perl <none> (no description available)
ii man-db 2.5.5-1 on-line manual pager
-- no debconf information
--
Noah Slater, http://tumbolia.org/nslater
Reply to: