Bug#1098969: DebFile scripts ignore DEBIAN/templates file

Gabriel B. Sant'Anna gabriel.santanna at canonical.com
Wed Feb 25 19:27:25 GMT 2026


> I believe the current behaviour is correct. Since `DEBIAN/templates` is
> not a `maintscript`, it should not be included in `scripts()`. It is the
> same reason why `DEBIAN/control` is also not present in that value.

That's fair, although it could be argued that the templates file could also
be included since, when present, it's often needed by the main scripts.

>From the Debian Policy (
https://www.debian.org/doc/debian-policy/ch-binary.html#s-maintscriptprompt
):
> Packages which use the Debian Configuration Management Specification may
contain the additional package metadata files `config` and `templates`.
> `config` is an additional maintainer script used for package
configuration, and `templates` contains templates used for user prompting.

Still, I think it's fine to keep this as it is, but it would be nice to
have this limitation documented in the API.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-python-debian-maint/attachments/20260225/c12cece9/attachment.htm>


More information about the pkg-python-debian-maint mailing list