[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#679132: lintian: false positive on package-uses-local-diversion when --local and --package are not given



On 2012-06-26 16:53, Raphaël Hertzog wrote:
> 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).
> 
> [...]
> 
> 
> 

Actually, it sounds like it is a proper warning, since Squeeze (i.e.
stable) still has 1.15.8.12.  That means it could cause issues for
people not upgrading dpkg before everything else (or for any package
upgraded together with dpkg).

~Niels






Reply to: