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

Re: cvs commit to debian-installer/anna by barbier

On Fri, Nov 22, 2002 at 09:44:20AM +0100, Martin Sjögren wrote:
> tor 2002-11-21 klockan 23.41 skrev Debian Boot CVS Master:
> > Repository: debian-installer/anna
> > who:        barbier
> > time:       Thu Nov 21 15:41:05 MST 2002
> > Log Message:
> >   Replace "SUBST foo DEFAULT value" by "SET foo value"
> But I don't *want* to set the value. I want a *default* value which is
> only used if there currently is no value!
> I thought the semantics of what the frontend thinks is default was
> if value exists then value else default
> Is this wrong? Now do I have to start by checking if there is a value,
> and if not, set it? Why aren't substitutions allowed in Defaults? Can't
> there be situations where you want to substitute part of a Default and
> want the rest to be translated?

Hi Martin,

I made these changes because cdebconf had a different behaviour than
debconf, and assumed that SUBST was used as a workaround.
>From debconf-devel.7 about the SUBST command:

       Do not try to use SUBST to change the default value
       of a question; it won't work since there is  a  SET
       command explicielt for that purpose.

That said, I don't have a definitive answer to your question yet, so
you may use SUBST if you want.  But in this particular case, I see no
difference between the 2 alternatives (except for variable substitution),
are there any?


Reply to: