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

Re: Pre-Depends of #CDD#-common meta packages from cdd-common

On Fri, Jun 11, 2004 at 12:59:04PM +0200, Andreas Tille wrote:
> On Fri, 11 Jun 2004, Colin Watson wrote:

> >   * meta-package's .config script requires data from cdd-common
> Yes.

> >     Answer: You can't. .config scripts can only depend on Essential
> >     packages plus debconf, and Pre-Depends doesn't help.

> >   * meta-package's .postinst script requires data from cdd-common

> >     Answer: Use Depends, which is sufficient.
> This was the old solution which is suboptimal because asking questions
> in postinst script sucks.  The question can only be asked when cdd-common
> is installed because they call scripts from this package to aquire data
> which are needed for the questions.

The .config script is executed twice during an apt-based package
installation: once during pre-configure, and once when the postinst

If you write your .config script carefully, you can make it run
correctly in the absence of the packages you need, but use them if
they're present.  This maximizes the number of people who will be able
to take advantage of pre-config for your package.

Steve Langasek
postmodern programmer

Attachment: signature.asc
Description: Digital signature

Reply to: