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

Re: Common set of debconf templates

On Tue, Oct 12, 2004 at 10:05:40PM +0200, Agustin Martin wrote:
> On Mon, Oct 11, 2004 at 12:59:01PM +0200, Brian Sutherland wrote:
> > On Mon, Oct 11, 2004 at 07:36:40AM +0200, Christian Perrier wrote:
> > >        It's actually possible to have a template and a question that
> > >        are shared among a set of packages. All the packages have to
> > >        provide an identical copy of the template in their templates
> >                     ^^^^^^^^^
> > >        files. This can be useful if a bunch of packages need to ask
> > >        the same question, and you only want to bother the user with it
> > >        once. Shared templates are generally put in the shared/
> > >        pseudo-directory in the debconf tem- plate namespace.
> > 
> > What happens when the template changes in the template package but is
> > out of sync in the other packages?
> > 
> IIRC, last installed package wins and puts its version of the template into
> the debconf database, even if it is not the most up-to-date. If there is a
> package that has no translations at all for the shared question and is
> installed after packages having plenty of translations, there will be no
> translations at all for that shared question in the debconf database. 

What about a rule that says:

- If the package name is the same as the directory in the debconf database
  then use that package's templates take priority.
- Else, as before.

The package includes the template-package's templates at build
(debhelper style as suggested before).

Then up to date translations can be ensured by installing a
debconf-translation-templates meta package or templates package before 
the package.

(Pre-depends / Recommends / Installer business??)

Brian Sutherland

Reply to: