Package: wicd-gtk
Version: 1.7.0+ds1-5
Severity: minor
File: /usr/bin/wicd-client

When starting wicd-client from ~/.xsession, where $TERM is not
defined, these messages are printed to ~/.xsession-errors:

tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified

Simply moving the tput commands closer to where they're used fixes the
problem. Patch attached.

-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable'), (90, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.39-bpo.2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wicd-gtk depends on:
ii  python                  2.6.6-3+squeeze6 interactive high-level object-orie
ii  python-glade2           2.17.0-4         GTK+ bindings: Glade support
ii  python-gtk2             2.17.0-4         Python bindings for the GTK+ widge
ii  wicd-daemon             1.7.0+ds1-5      wired and wireless network manager

Versions of packages wicd-gtk recommends:
ii  gksu                 2.0.2-5             graphical frontend to su
ii  python-notify        0.1.1-2+b2          Python bindings for libnotify
ii  sudo                 1.7.4p4-2.squeeze.2 Provide limited super user privile

wicd-gtk suggests no packages.

Versions of packages wicd depends on:
ii  wicd-daemon                  1.7.0+ds1-5 wired and wireless network manager

Versions of packages wicd-cli depends on:
ii  wicd-daemon                  1.7.0+ds1-5 wired and wireless network manager

Versions of packages wicd-curses depends on:
ii  python                  2.6.6-3+squeeze6 interactive high-level object-orie
ii  python-urwid            0.9.9.1-1        curses-based UI/widget library for
ii  wicd-daemon             1.7.0+ds1-5      wired and wireless network manager

Versions of packages wicd-daemon depends on:
ii  adduser             3.112+nmu2           add and remove users and groups
ii  dbus                1.2.24-4+squeeze1    simple interprocess messaging syst
ii  debconf [debconf-2. 1.5.36.1             Debian configuration management sy
ii  ethtool             1:2.6.34-3           display or change Ethernet device 
ii  iproute             20100519-3           networking and traffic control too
ii  iputils-ping        3:20100418-3         Tools to test the reachability of 
ii  isc-dhcp-client [dh 4.1.1-P1-15+squeeze3 ISC DHCP client
ii  lsb-base            3.2-23.2squeeze1     Linux Standard Base 3.2 init scrip
ii  net-tools           1.60-23              The NET-3 networking toolkit
ii  psmisc              22.11-1              utilities that use the proc file s
ii  python              2.6.6-3+squeeze6     interactive high-level object-orie
ii  python-dbus         0.83.1-1             simple interprocess messaging syst
ii  python-gobject      2.21.4+is.2.21.3-1   Python bindings for the GObject li
ii  python-iniparse     0.3.2-1              Module to access and modify config
ii  python-wicd         1.7.0+ds1-5          wired and wireless network manager
ii  wireless-tools      30~pre9-5            Tools for manipulating Linux Wirel
ii  wpasupplicant       0.6.10-2.1           client support for WPA and WPA2 (I

Versions of packages python-wicd depends on:
ii  python                  2.6.6-3+squeeze6 interactive high-level object-orie
ii  python-support          1.0.10           automated rebuilding support for P

-- debconf information:
* wicd/users: kenyon

-- debsums errors found:
debsums: changed file /usr/bin/wicd-client (from wicd-gtk package)
--- /usr/bin/wicd-client~       2010-05-29 00:25:16.000000000 -0700
+++ /usr/bin/wicd-client        2011-12-23 23:51:13.043721511 -0800
@@ -1,7 +1,4 @@
 #!/bin/sh
-BOLD=$(tput bold)
-BLUE=$(tput setaf 4)
-NC=$(tput sgr0)
 # check_firstrun()
 if [ ! -d "$HOME/.wicd" ]; then
     mkdir -p "$HOME/.wicd"
@@ -11,28 +8,31 @@
     ln -s "/var/lib/wicd/WHEREAREMYFILES" "$HOME/.wicd/WHEREAREMYFILES"
 fi
 if [ "$DISPLAY" = "" ]; then
+    BOLD=$(tput bold)
+    BLUE=$(tput setaf 4)
+    NC=$(tput sgr0)
     if [ -x "/usr/bin/wicd-curses" ]; then
         if [ ! -f "$HOME/.wicd/CLIENT_CURSES_WARNING" ]; then
             printf "NOTICE: You do not have an X server active on this 
console, \n"
             printf "so ${BOLD}${BLUE}wicd-curses${NC} will be started instead. 
\n"
             printf "Please see the wicd-client and/or wicd-curses manual pages 
\n"
             printf "for more information about this error and resulting 
message. \n"
-            printf "\n" 
+            printf "\n"
             printf "This message will not be displayed again. \n"
             printf "Press enter to continue... \n"
 
             read _junk
-            cat >> "$HOME/.wicd/CLIENT_CURSES_WARNING" << EOF 
+            cat >> "$HOME/.wicd/CLIENT_CURSES_WARNING" << EOF
 The wicd-client script checks for the existence of this file to determine
-whether it should warn the user before launching wicd-curses instead, in 
+whether it should warn the user before launching wicd-curses instead, in
 the event of the gui client being launched outside of the X Window environment.
 
-If you delete this file, then wicd-client will print the warning if it is 
+If you delete this file, then wicd-client will print the warning if it is
 launched outside of X (and then recreate this file again).
 EOF
         fi
         exec /usr/bin/wicd-curses $@
-    
+
     else
         printf "NOTICE: You do not have an X server active on this console, \n"
         printf "but you do not appear to have ${BOLD}${BLUE}wicd-curses${NC}\n"

Reply via email to