--- Begin Message ---
Package: lsb-base
Version: 3.1-23.1
Severity: wishlist
Tags: patch
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (850, 'testing'), (800, 'unstable'), (750, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-gas-machine
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Versions of packages lsb-base depends on:
ii ncurses-bin 5.5-5 Terminal-related programs
and man
ii sed 4.1.5-1 The GNU sed stream editor
lsb-base recommends no packages.
-- no debconf information
The init-functions script can do "fancy" and "non-fancy" output, but
actually they are almost the same...
I made a little patch to get a "little-bit-more" fancy output...
Yes, I know, it's only a cosmetic thing and the LSB team have major
problems to deal with, but a little of color in our monitors can't hurt,
I think... :)
Thanks
--
Alessio
--- /lib/lsb/init-functions.orig 2007-03-28 10:56:00.000000000 +0200
+++ /lib/lsb/init-functions 2007-03-28 11:06:31.000000000 +0200
@@ -145,14 +145,23 @@
}
log_success_msg () {
- echo "$@"
+ if log_use_fancy_output; then
+ RALIGN="\\r\\033[$[`$TPUT cols`-6]C"
+ GREEN=`$TPUT setaf 2`
+ NORMAL=`$TPUT op`
+ echo -e "$@${RALIGN}[${GREEN}DONE${NORMAL}]"
+
+ else
+ echo "$@"
+ fi
}
log_failure_msg () {
if log_use_fancy_output; then
+ RALIGN="\\r\\033[$[`$TPUT cols`-6]C"
RED=`$TPUT setaf 1`
NORMAL=`$TPUT op`
- echo "$RED*$NORMAL $@"
+ echo -e "${RED}*${NORMAL} $@${NORMAL}${RALIGN}[${RED}FAIL${NORMAL}]"
else
echo "$@"
fi
@@ -160,9 +169,10 @@
log_warning_msg () {
if log_use_fancy_output; then
+ RALIGN="\\r\\033[$[`$TPUT cols`-6]C"
YELLOW=`$TPUT setaf 3`
NORMAL=`$TPUT op`
- echo "$YELLOW*$NORMAL $@"
+ echo -e "${YELLOW}*${NORMAL} $@${RALIGN}[${YELLOW}WARN${NORMAL}]"
else
echo "$@"
fi
@@ -247,12 +257,15 @@
# Only do the fancy stuff if we have an appropriate terminal
# and if /usr is already mounted
if log_use_fancy_output; then
- RED=`$TPUT setaf 1`
+ GREEN=`$TPUT setaf 2`
+ RED=`$TPUT setaf 1`
NORMAL=`$TPUT op`
if [ $1 -eq 0 ]; then
- echo "."
+ RALIGN="\\r\\033[$[`$TPUT cols`-6]C"
+ echo -e "${RALIGN}[${GREEN}DONE${NORMAL}]"
else
- /bin/echo -e " ${RED}failed!${NORMAL}"
+ RALIGN="\\r\\033[$[`$TPUT cols`-6]C"
+ echo -e "${RED}*${NORMAL} $@${NORMAL}${RALIGN}[${RED}FAIL${NORMAL}]"
fi
else
if [ $1 -eq 0 ]; then
@@ -284,12 +297,20 @@
fi
if [ $1 -eq 0 ]; then
- echo "done${end}"
+ if log_use_fancy_output; then
+ GREEN=`$TPUT setaf 2`
+ NORMAL=`$TPUT op`
+ RALIGN="\\r\\033[$[`$TPUT cols`-6]C"
+ echo -e "${RALIGN}[${GREEN}DONE${NORMAL}]"
+ else
+ echo "done${end}"
+ fi
else
if log_use_fancy_output; then
RED=`$TPUT setaf 1`
NORMAL=`$TPUT op`
- /bin/echo -e "${RED}failed${end}${NORMAL}"
+ RALIGN="\\r\\033[$[`$TPUT cols`-10]C"
+ echo -e "${RED}*${NORMAL} $@${NORMAL}${RALIGN}[${RED}FAIL${NORMAL}]"
else
echo "failed${end}"
fi
--- End Message ---
--- Begin Message ---
Source: lsb
Source-Version: 4.1+Debian0+fancy0
We believe that the bug you reported is fixed in the latest version of
lsb, which is due to be installed in the Debian FTP archive:
lsb-base_4.1+Debian0+fancy0_all.deb
to main/l/lsb/lsb-base_4.1+Debian0+fancy0_all.deb
lsb-core_4.1+Debian0+fancy0_amd64.deb
to main/l/lsb/lsb-core_4.1+Debian0+fancy0_amd64.deb
lsb-cxx_4.1+Debian0+fancy0_amd64.deb
to main/l/lsb/lsb-cxx_4.1+Debian0+fancy0_amd64.deb
lsb-desktop_4.1+Debian0+fancy0_amd64.deb
to main/l/lsb/lsb-desktop_4.1+Debian0+fancy0_amd64.deb
lsb-graphics_4.1+Debian0+fancy0_amd64.deb
to main/l/lsb/lsb-graphics_4.1+Debian0+fancy0_amd64.deb
lsb-invalid-mta_4.1+Debian0+fancy0_all.deb
to main/l/lsb/lsb-invalid-mta_4.1+Debian0+fancy0_all.deb
lsb-languages_4.1+Debian0+fancy0_amd64.deb
to main/l/lsb/lsb-languages_4.1+Debian0+fancy0_amd64.deb
lsb-multimedia_4.1+Debian0+fancy0_amd64.deb
to main/l/lsb/lsb-multimedia_4.1+Debian0+fancy0_amd64.deb
lsb-printing_4.1+Debian0+fancy0_amd64.deb
to main/l/lsb/lsb-printing_4.1+Debian0+fancy0_amd64.deb
lsb-release_4.1+Debian0+fancy0_all.deb
to main/l/lsb/lsb-release_4.1+Debian0+fancy0_all.deb
lsb-security_4.1+Debian0+fancy0_amd64.deb
to main/l/lsb/lsb-security_4.1+Debian0+fancy0_amd64.deb
lsb_4.1+Debian0+fancy0.dsc
to main/l/lsb/lsb_4.1+Debian0+fancy0.dsc
lsb_4.1+Debian0+fancy0.tar.gz
to main/l/lsb/lsb_4.1+Debian0+fancy0.tar.gz
lsb_4.1+Debian0+fancy0_all.deb
to main/l/lsb/lsb_4.1+Debian0+fancy0_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 416485@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Didier Raboud <odyx@debian.org> (supplier of updated lsb package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sat, 31 Mar 2012 18:49:23 +0200
Source: lsb
Binary: lsb-core lsb-graphics lsb-cxx lsb-desktop lsb-languages lsb-multimedia lsb-printing lsb-security lsb lsb-base lsb-release lsb-invalid-mta
Architecture: source amd64 all
Version: 4.1+Debian0+fancy0
Distribution: experimental
Urgency: low
Maintainer: Debian LSB Team <debian-lsb@lists.debian.org>
Changed-By: Didier Raboud <odyx@debian.org>
Description:
lsb - Linux Standard Base 4.1 support package
lsb-base - Linux Standard Base 4.1 init script functionality
lsb-core - Linux Standard Base 4.1 core support package
lsb-cxx - Linux Standard Base 4.1 C++ support package
lsb-desktop - Linux Standard Base 4.1 Desktop support package
lsb-graphics - Linux Standard Base 4.1 graphics support package
lsb-invalid-mta - Linux Standard Base sendmail dummy
lsb-languages - Linux Standard Base 4.1 Runtime Languages package
lsb-multimedia - Linux Standard Base 4.1 Multimedia package
lsb-printing - Linux Standard Base 4.1 Printing package
lsb-release - Linux Standard Base version reporting utility
lsb-security - Linux Standard Base 4.1 Security package
Closes: 416485
Changes:
lsb (4.1+Debian0+fancy0) experimental; urgency=low
.
* Make the init.d scripts messages fancier by prepending them a [....]
block that becomes [ ok ], [warn] or [FAIL] depending on the daemons
exit statuses (Closes: #416485).
- Update lsb-base' README.Debian and NEWS.
Checksums-Sha1:
945dba72f1230fc13e5bdbacbb09cfcfc2a87651 2065 lsb_4.1+Debian0+fancy0.dsc
9d3f4ace9a559ad9a7d32840df1728c1c2f01509 62872 lsb_4.1+Debian0+fancy0.tar.gz
d691a7cf1698db98f371eb94f7ffa7f924562525 43188 lsb-core_4.1+Debian0+fancy0_amd64.deb
8a242f6d3f5357faed5b1c8aeb581e555fb39e01 17996 lsb-graphics_4.1+Debian0+fancy0_amd64.deb
95568f713798561392cfe692a189a9403f6b93fa 17974 lsb-cxx_4.1+Debian0+fancy0_amd64.deb
c0f0b9a8206f8b047754ecba0292f29e3683933a 18152 lsb-desktop_4.1+Debian0+fancy0_amd64.deb
3247b50e87687a31089d6650b5e201eec7f847b2 18006 lsb-languages_4.1+Debian0+fancy0_amd64.deb
0c3623a0a2075190feaba6641f4576c77bc076f8 17974 lsb-multimedia_4.1+Debian0+fancy0_amd64.deb
425f56d7568ab393efdfaff90cc389221718288f 18000 lsb-printing_4.1+Debian0+fancy0_amd64.deb
f7d6d49ac90fbb8e861c2861c60791f9a5499e8a 17970 lsb-security_4.1+Debian0+fancy0_amd64.deb
9ea3b672cd1eec4806ea997d8be25585408b6740 17960 lsb_4.1+Debian0+fancy0_all.deb
f51371cfeb25d57b1c7478c0d35add89ded284f2 24804 lsb-base_4.1+Debian0+fancy0_all.deb
0afe3d7b22dc068ad0364078f6805b1d94f3f00b 24846 lsb-release_4.1+Debian0+fancy0_all.deb
103ff25f535ffd7c79109b03547aa86cba668b22 18308 lsb-invalid-mta_4.1+Debian0+fancy0_all.deb
Checksums-Sha256:
f6c755bf1d9b3c750d74dacbc9ded4ab5995e0b11d0216564e3f3407b3dad4d4 2065 lsb_4.1+Debian0+fancy0.dsc
276da743d407c50604fe3ab1dc7263fe39b86510e41a2374fbc27310fec14762 62872 lsb_4.1+Debian0+fancy0.tar.gz
def2299e7a3db312f30d10d9a4f0b2f10ddff75f9bae0d0494ddd0b7fe092b15 43188 lsb-core_4.1+Debian0+fancy0_amd64.deb
6ac9e7d19090fc3e1eb947c094c974524e7751e90fd88959d6121e3be3725b91 17996 lsb-graphics_4.1+Debian0+fancy0_amd64.deb
1ad6432423befa470f5334da338f7e07536eedab1a58eb1de88d520e8074c8a0 17974 lsb-cxx_4.1+Debian0+fancy0_amd64.deb
b92573f300e8d7e67cd439599bade89fa7b20d6a7590d6ef4cb39812ded1e23e 18152 lsb-desktop_4.1+Debian0+fancy0_amd64.deb
35809a3450b6f5d3eb4d5562e4ceb0bf7f20a1412b723b4c345f756dd592be16 18006 lsb-languages_4.1+Debian0+fancy0_amd64.deb
6557fc9bb5aed3d47e6bca6273315bf61aa856fe4bb8af0e4ff2d21c94b8d987 17974 lsb-multimedia_4.1+Debian0+fancy0_amd64.deb
88f86d2f648f169f81734dd0a37014d049a3445077d119370040b686fc81da29 18000 lsb-printing_4.1+Debian0+fancy0_amd64.deb
704375fa321651b98638458a43d0884171ae47ca74cf5dbcd203f367d38c0c1b 17970 lsb-security_4.1+Debian0+fancy0_amd64.deb
75abd900f8b6d74a08e079c75d0714acd75950a303a501ec7390e84cb99a711e 17960 lsb_4.1+Debian0+fancy0_all.deb
bf4e1c8c1d3bf568319ce7026255fc58ba5b050d1124bb40e22a30ab40154099 24804 lsb-base_4.1+Debian0+fancy0_all.deb
d48cad1bada7217b518de1d17871f2a816c4d5778f71b1eabd37acb0ad1b5969 24846 lsb-release_4.1+Debian0+fancy0_all.deb
35f8706c67c75a13dcad835b01e5b15ff962c073da00466307046e0f05b384bd 18308 lsb-invalid-mta_4.1+Debian0+fancy0_all.deb
Files:
569da232f2357cc99e8cefd3a22932dd 2065 misc extra lsb_4.1+Debian0+fancy0.dsc
0e6939ba42d82d6641e28a993a135a9b 62872 misc extra lsb_4.1+Debian0+fancy0.tar.gz
bb0e9c43cb571c22a6a49e1154b7476e 43188 misc extra lsb-core_4.1+Debian0+fancy0_amd64.deb
71cc3e2b1a21fd96cb04b00295863f12 17996 misc extra lsb-graphics_4.1+Debian0+fancy0_amd64.deb
d3a563b1df6d7e014ad46cb020314760 17974 misc extra lsb-cxx_4.1+Debian0+fancy0_amd64.deb
15a8ba96a48d7c54b2bbf6c5606fbdbb 18152 misc extra lsb-desktop_4.1+Debian0+fancy0_amd64.deb
5180440454375533a54e81f13eaad255 18006 misc extra lsb-languages_4.1+Debian0+fancy0_amd64.deb
bd3d6683ff46471bee94681d94dfc9b1 17974 misc extra lsb-multimedia_4.1+Debian0+fancy0_amd64.deb
b11ddbbe461c95e41e878f3375081e0d 18000 misc extra lsb-printing_4.1+Debian0+fancy0_amd64.deb
842b9c9a9e6500c8857f21392c2bf9fb 17970 misc extra lsb-security_4.1+Debian0+fancy0_amd64.deb
26fa37a4c173e84be65551b55278797d 17960 misc extra lsb_4.1+Debian0+fancy0_all.deb
e91615babb6b06f4f35e7c9e9ca4b0f9 24804 misc required lsb-base_4.1+Debian0+fancy0_all.deb
0e1b9cb576e66d8e6e7d59420ef56bb1 24846 misc optional lsb-release_4.1+Debian0+fancy0_all.deb
876528ac2b6d3d4afe086e8ceb868210 18308 misc extra lsb-invalid-mta_4.1+Debian0+fancy0_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQGcBAEBCAAGBQJPdzpyAAoJEIvPpx7KFjRVd88L/2vhq8LJJin3vSobxIi6sh82
T6BsSmb/CW+eQz/CGDsjUWb2XSn/P42I7OoE2wsdRZwmbjOwXlr1KzpQC9pPs6Gf
0hUDrr6OxoKvcda1xf3ZqNytwrP8HO7bcDXimYZW6uoSMlpM/Yuykwbapb2Lov6p
yuew5obX9sDT9cl/u7Z5srez/S57FT7Glf7FMnp1DkZOH3TXXT2kmDmoSMaOdSDu
8bG2JWN7Z6Zwc06k0gs1ZTYz9RgTvUAbtvcHnM/1e2KU3C8jd7SYhLlmpranj9Qu
U9LpCztAwqxRBsSq1o59ihAc+8GAfnqhfgIi8ZshBP5h7EPhuS7qVsweAfTM4lV+
w6F/nxN0eC0ik4CUwhMPqyv8POjnTNFxbx4SuLXN4XggHJqoTNs/CO1c+yhZ7cPu
mCXceoYZ/Cz/jpLvs6uSCQocKm0n7LfrK/HCvSeZ+f87Cg6QjfwUPFuxFEJTCdfQ
kR9imQT2dLpzmjvlXXyIbDUS4rj8oDmwJKMuM3DF0w==
=xIfk
-----END PGP SIGNATURE-----
--- End Message ---