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

Bug#464775: lintian: false positive about debconf module loading



Manoj Srivastava <srivasta@debian.org> writes:

>         Lintian says:
> W: mailagent: postinst-does-not-load-confmodule
>
>         But the postinst does:
> ######################################################################
> my $have_debconf = 0;
> eval {require Debconf::Client::ConfModule;};
> if ( ! $@ )
> {
>   $have_debconf++;
>   import Debconf::Client::ConfModule ':all';
> }
> ######################################################################
>
>         The postinst either uses debconf, if available, or it prompts by
>  itself (since the prompting predates debconf).  Does lintian presume
>  that all postinst scripts are shell scripts?

No, it was just expecting use and didn't know about require.  I've taught
it about require and the fix will be in the bug-fix release of lintian
that will probably be uploaded this evening.

Thanks!

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: