Debian Bug report logs - #397785
lintian: Warn if a postinst script doesn't understand reconfigure

version graph

Package: lintian; Maintainer for lintian is Debian Lintian Maintainers <[email protected]>; Source for lintian is src:lintian (PTS, buildd, popcon).

Reported by: Frank Küster <[email protected]>

Date: Thu, 9 Nov 2006 14:03:09 UTC

Severity: wishlist

Found in version 1.5.8

Fix blocked by 629247: lintian: Please use a decent shell script parser

Full log


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

Received: (at 397785) by bugs.debian.org; 9 Nov 2006 19:54:17 +0000
From [email protected] Thu Nov 09 11:54:17 2006
Return-path: <[email protected]>
Received: from smtp1.stanford.edu ([171.67.22.28])
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1GiFyb-0000OP-0M
	for [email protected]; Thu, 09 Nov 2006 11:54:17 -0800
Received: from smtp1.stanford.edu (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with SMTP id 44B1C4BF4D;
	Thu,  9 Nov 2006 11:54:16 -0800 (PST)
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.64.19.147])
	by smtp1.stanford.edu (Postfix) with ESMTP id 265944BE6A;
	Thu,  9 Nov 2006 11:54:15 -0800 (PST)
Received: by windlord.stanford.edu (Postfix, from userid 1000)
	id EA1A6E7A61; Thu,  9 Nov 2006 11:54:15 -0800 (PST)
From: Russ Allbery <[email protected]>
To: Frank Küster <[email protected]>
Cc: [email protected]
Subject: Re: Bug#397785: [debconf] Should warn if postinst doesn't understand argument "reconfigure"
In-Reply-To: <[email protected]> (Frank
 Küster's message of
	"Thu, 09 Nov 2006 14:57:28 +0100")
Organization: The Eyrie
References: <[email protected]>
Date: Thu, 09 Nov 2006 11:54:15 -0800
Message-ID: <[email protected]>
User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
Frank Küster <[email protected]> writes:

> Package: lintian
> Version: 1.5.8
> Severity: wishlist

> From debconf-devel(7):

> ,----
> | the right thing would be to pass $1 = "reconfigure", but doing so
> | without breaking all the postinsts that use debconf is difficult.  The
> | migration plan away from this hack is to encourage people to write
> | postinsts that accept "reconfigure", and once they all do, begin
> | passing that variable.
> `----

> To aid in that goal, it would be nice if lintian complained if
> reconfigure is not accepted.

Agreed, but I don't have any idea how to do that given that the tests in
postinst can be written as case statements or if statements and in many
different formats and syntaxes and simply missing the word "reconfigure"
doesn't mean that the postinst is wrong.

-- 
Russ Allbery ([email protected])               <http://www.eyrie.org/~eagle/>



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:22:05 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.