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

Bug#537609: thinks commands are used in scripts while only mentioned in (not called!) functions



Hi,

Russ Allbery wrote:
> Rene Engelhard <rene@debian.org> writes:
> 
> > No, I do *not* use ucf in this package.
> >
> > (Though, yes, it's mentioned in three *functions* defined in the source
> > but they are not used in this package.
> 
> Again here, Lintian has no real hope of being able to figure this out.
> When you're doing unusual things like this, you're going to need to use
> overrides.

I don't see how this is uncommon..

And how can't lintian find that out? You probably are able to know
when  the command appears in a function, and after it you can look
whether it's called. "grep" (or something more sophisticated) for it,
don't allow () as for the definition. found -> thing used.

Besides that, you really want duplication of the command in every maintainer
script, thus needing to fix all for a given issue instead of one time :

Grüße/Regards,

René
-- 
 .''`.  René Engelhard -- Debian GNU/Linux Developer
 : :' : http://www.debian.org | http://people.debian.org/~rene/
 `. `'  rene@debian.org | GnuPG-Key ID: 248AEB73
   `-   Fingerprint: 41FA F208 28D4 7CA5 19BB  7AD9 F859 90B0 248A EB73




Reply to: