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 #5 received at [email protected] (full text, mbox, reply):

Received: (at submit) by bugs.debian.org; 23 Dec 2002 22:36:49 +0000
From [email protected] Mon Dec 23 16:36:49 2002
Return-path: <[email protected]>
Received: from smtp-101.noc.nerim.net (mallaury.noc.nerim.net) [62.4.17.101] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18QbBp-0000Rf-00; Mon, 23 Dec 2002 16:36:49 -0600
Received: from localhost.localdomain (sinibar.net1.nerim.net [62.4.18.43])
	by mallaury.noc.nerim.net (Postfix) with ESMTP
	id 2F23762D07; Mon, 23 Dec 2002 23:36:45 +0100 (CET)
Received: by localhost.localdomain (Postfix, from userid 1000)
	id 90F03251A9; Mon, 23 Dec 2002 23:36:15 +0100 (CET)
Date: Mon, 23 Dec 2002 23:36:15 +0100
From: Denis Barbier <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: debconf: allow empty variable substitutions in Choices field
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="tThc/1wpZn/ma/RB"
Content-Disposition: inline
User-Agent: Mutt/1.4i
X-Reportbug-Version: 2.9
Delivered-To: [email protected]
X-Spam-Status: No, hits=-5.2 required=5.0
	tests=PATCH_UNIFIED_DIFF,SPAM_PHRASE_00_01,USER_AGENT,
	      USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 
[Message part 1 (text/plain, inline)]
Package: debconf
Version: 1.2.20
Severity: normal
Tags: patch

Hi,

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.
Here is a patch.

Denis

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux france0danemark2 2.4.20-386 #1 Sat Dec 21 14:31:26 EST 2002 i586
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (ignored: LC_ALL set)

Versions of packages debconf depends on:
ii  perl-base                     5.8.0-14   The Pathologically Eclectic Rubbis

-- debconf information excluded

[substempty.patch (text/plain, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Fri May 16 15:19:33 2025; Machine Name: buxtehude

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.