Skip to contentSkip to conversation

Fix for YB5795

PATCH New Cristian Iorga 1 participant 2 messages Mar 27, 2014

lore
Share & tools
lore
#0 lore raw

cover Fix for YB5795

The following changes since commit ae938eba92b2c89a9fd91161e57c5dbc594ad4ad:

local.conf.sample.extended: update it for the archiver (2014-03-26 12:15:44 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib ciorga/YB5795
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ciorga/YB5795

Cristian Iorga (1):
lsb: fix lsb_log_msg() implementation

 meta/recipes-extended/lsb/lsb/init-functions  | 7 ++++++-
 meta/recipes-extended/lsb/lsb/lsb_log_message | 5 -----
 2 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 lsb: fix lsb_log_msg() implementation

LSB lsb_log_message calls a begin() function that should be implemented
in /etc/init.d/functions.
The aforementioned script does not implement the begin() function, as
such there is a small issue related to logging.

This fix implements a local version of the function, while cleaning up the troublesome previous implementation.

Fix [YOCTO #5795]

---
 meta/recipes-extended/lsb/lsb/init-functions  | 7 ++++++-
 meta/recipes-extended/lsb/lsb/lsb_log_message | 5 -----
 2 files changed, 6 insertions(+), 6 deletions(-)
meta/recipes-extended/lsb/lsb/init-functions +6 -1
index e15827a..7c1dce2 100755
@@ -30,10 +30,15 @@ log_warning_msg () {
 	/etc/core-lsb/lsb_log_message warning "$@"
 }
 
+# int log_begin_message (char *message)
 log_begin_msg () {
-	/etc/core-lsb/lsb_log_message begin "$@"
+	if [ -z "$1" ]; then
+		return 1
+	fi
+	echo " * $@"
 }
 
+
 log_end_msg () {
 	/etc/core-lsb/lsb_log_message end "$@"
 }
meta/recipes-extended/lsb/lsb/lsb_log_message +0 -5
index a716518..10343b0 100755
@@ -21,11 +21,6 @@ case "$ACTION" in
 	warning "$*"
 	echo
 	;;
-  begin)
-  	echo -n $*
-	begin "$*"
-	echo
-	;;
   *)
   	;;
 esac
Signature · 1 line
1.8.3.2