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

Re: Ideas wrt debconf templates checks



Adam D. Barratt wrote:
> As far as I can see, such a test does not currently exist. It would be
> fairly simple to add, assuming that the following methodology would make
> sense (on a per-binary package basis):
> 
> for each of config, preinst, postinst, prerm, postrm
> 	find uses of db_input, db_get, db_set and record
> 	  the associated question name
> 
> for each template in templates
> 	check name against the list from step 1

This has two obvious problems:

- db_register can be used to generate other questions with different
  names that use a template that otherwise appears unused.
- It's not uncommon to use variables or more complex things to refer
  to a question name.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: