Bug#537609: thinks commands are used in scripts while only mentioned in (not called!) functions
Russ Allbery wrote:
> Rene Engelhard <email@example.com> 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
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 :
.''`. René Engelhard -- Debian GNU/Linux Developer
: :' : http://www.debian.org | http://people.debian.org/~rene/
`. `' firstname.lastname@example.org | GnuPG-Key ID: 248AEB73
`- Fingerprint: 41FA F208 28D4 7CA5 19BB 7AD9 F859 90B0 248A EB73