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

Bug#176483: checks for "noninteractive" (lower case) in postinst



Hello,

On Mon, Jan 13, 2003 at 03:38:37PM +0900, Junichi Uekawa wrote:
> Package: base-passwd,exim,fdutils,libc6
So is it possible to have bugs, which belong to several packages
at once?  I did not know this before.

> if [ $build_db -eq 1 ]; then
>     frontend=`echo "$DEBIAN_FRONTEND" | tr '[:upper:]' '[:lower:]'`
>     if [ "$frontend" = noninteractive ]; then
>         # Run in the foreground. In this case, chances are we're being run
Is this the proposed fix or is this the problem?

The fdutils postinst contains the lines

        if [ "$DEBIAN_FRONTEND" ]; then
            DEBIAN_FRONTEND=`echo "$DEBIAN_FRONTEND" | tr A-Z a-z`
        fi
        
        if [ "$DEBIAN_FRONTEND" != "noninteractive" ] \
            && dpkg --compare-versions "$2" lt "5.2.0.1998-07-01-3"; then
        ...

which seems ok to me.  What is the problem you see?

Confused,
Jochen
-- 
http://www.mathematik.uni-kl.de/~wwwstoch/voss/

Attachment: pgp5ZfPti9mG0.pgp
Description: PGP signature


Reply to: