Package: lsb-base Version: 3.2-23.1 Severity: wishlist
Make long lines fit on terminal and more readable; like breaking if conditions in logical chunks. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages lsb-base depends on: ii ncurses-bin 5.7+20100313-4 terminal-related programs and man ii sed 4.2.1-7 The GNU sed stream editor lsb-base recommends no packages. lsb-base suggests no packages. -- no debconf information
>From fee59a7f0ab5f8950b6228232aafed86f4ad0802 Mon Sep 17 00:00:00 2001 From: Jari Aalto <[email protected]> Date: Sun, 31 Oct 2010 23:51:13 +0200 Subject: [PATCH] init-functions: break long lines Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto <[email protected]> --- init-functions | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/init-functions b/init-functions index 57444b8..1015019 100644 --- a/init-functions +++ b/init-functions @@ -51,9 +51,11 @@ start_daemon () { args="--start --nicelevel $nice --quiet --oknodo" if [ $force = 1 ]; then - /sbin/start-stop-daemon $args --chdir "$PWD" --startas $exec --pidfile /dev/null -- "$@" + /sbin/start-stop-daemon $args \ + --chdir "$PWD" --startas $exec --pidfile /dev/null -- "$@" elif [ $pidfile ]; then - /sbin/start-stop-daemon $args --chdir "$PWD" --exec $exec --oknodo --pidfile "$pidfile" -- "$@" + /sbin/start-stop-daemon $args \ + --chdir "$PWD" --exec $exec --oknodo --pidfile "$pidfile" -- "$@" else /sbin/start-stop-daemon $args --chdir "$PWD" --exec $exec -- "$@" fi @@ -135,12 +137,15 @@ killproc () { status=0 if [ ! "$is_term_sig" = yes ]; then if [ -n "$sig" ]; then - /sbin/start-stop-daemon --stop --signal "$sig" --quiet $name_param || status="$?" + /sbin/start-stop-daemon --stop --signal "$sig" \ + --quiet $name_param || status="$?" else - /sbin/start-stop-daemon --stop --quiet $name_param || status="$?" + /sbin/start-stop-daemon --stop \ + --quiet $name_param || status="$?" fi else - /sbin/start-stop-daemon --stop --quiet --oknodo $name_param || status="$?" + /sbin/start-stop-daemon --stop --quiet \ + --oknodo $name_param || status="$?" fi if [ "$status" = 1 ]; then if [ -n "$sig" ]; then @@ -191,7 +196,13 @@ status_of_proc () { log_use_fancy_output () { TPUT=/usr/bin/tput EXPR=/usr/bin/expr - if [ -t 1 ] && [ "x${TERM:-}" != "x" ] && [ "x${TERM:-}" != "xdumb" ] && [ -x $TPUT ] && [ -x $EXPR ] && $TPUT hpa 60 >/dev/null 2>&1 && $TPUT setaf 1 >/dev/null 2>&1; then + if [ -t 1 ] && + [ "x${TERM:-}" != "x" ] && + [ "x${TERM:-}" != "xdumb" ] && + [ -x $TPUT ] && [ -x $EXPR ] && + $TPUT hpa 60 >/dev/null 2>&1 && + $TPUT setaf 1 >/dev/null 2>&1 + then [ -z $FANCYTTY ] && FANCYTTY=1 || true else FANCYTTY=0 -- 1.7.2.3

