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

Bug#311545: dpkg: [update-alternatives] Please use stderr when there is nothing to configure

Package: dpkg
Version: 1.10.27
Severity: normal

If update-alternatives is called from script, the script cannot
know if the program asked fromt he use a question or not. Like 
in this situation:

    # update-alternatives --config x-www-browser

    There is only 1 program which provides x-www-browser
    (/usr/bin/mozilla-firefox). Nothing to configure.

The status code is 0. However if that message were sent to
stderr, then this situation could be noticed:

     update-alternatives --config x-www-browser 2> notes.log

      if [ -s notes.log ]; then
	 # ... something that prevented configuration, act upon it.

Right now when the message is printed th stdout, it is mixed with
the regular messages (the menu message to select item).

Please change to use stderr for informational messages like these.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)

Versions of packages dpkg depends on:
ii  dselect                     1.10.27      a user tool to manage Debian packa
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

-- no debconf information

Reply to: