Debian Bug report logs - #174130
debconf: allow empty variable substitutions in Choices field

version graph

Package: debconf; Maintainer for debconf is Debconf Developers <[email protected]>; Source for debconf is src:debconf (PTS, buildd, popcon).

Reported by: Denis Barbier <[email protected]>

Date: Mon, 23 Dec 2002 22:48:04 UTC

Severity: normal

Tags: patch

Found in version 1.2.20

Full log


Message #15 received at [email protected] (full text, mbox, reply):

Received: (at 174130-quiet) by bugs.debian.org; 30 Dec 2002 20:30:23 +0000
From [email protected] Mon Dec 30 14:30:22 2002
Return-path: <[email protected]>
Received: from zobe.linuxfr.org [212.27.33.220] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18T6YI-0003zw-00; Mon, 30 Dec 2002 14:30:22 -0600
Received: by zobe.linuxfr.org (Postfix, from userid 1015)
	id 83BFDEA76; Mon, 30 Dec 2002 21:28:25 +0100 (CET)
Date: Mon, 30 Dec 2002 21:28:25 +0100
To: [email protected]
Cc: Denis Barbier <[email protected]>
Subject: Re: Bug#174130: debconf: allow empty variable substitutions in Choices field
Message-ID: <[email protected]>
References: <[email protected]> <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.3.28i
From: [email protected] (Denis Barbier)
Delivered-To: [email protected]
X-Spam-Status: No, hits=-14.1 required=5.0
	tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02,
	      USER_AGENT,USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 
On Thu, Dec 26, 2002 at 09:30:31PM -0500, Joey Hess wrote:
> Denis Barbier wrote:
> > consider for instance
> >   Choices: ${foo}, Other, Exit
> > Sometimes ${foo} may be empty, in which case debconf displays an empty
> > line.  A workaround is to replace it by
> >   Choices: ${foo} Other, Exit
> > and to add a comma within foo when needed.
> > This is silly, IMO debconf should not take empty fields into account in
> > Choices fields.
> 
> This is part of the reason I intend to do away with substitution into
> Choices fields and add a new command to the protocol that can be used to
> set choices on the fly instead. You'd then do something like:
> 
> db_getchoices question
> db_setchoices question "$RET, new choice 1, new choice 2"
[...]

Please keep l10n problems in mind when designing this command, I am
afraid that these choices won't be easily translated.

Denis



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Fri May 16 15:23:52 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.