[Lunar-commits] <lunar> don't output anything unless there is progress.

Auke Kok sofar at foo-projects.org
Thu Jun 16 05:43:00 CEST 2011


commit eccd9a699e4cd61f760823c279d603f448f594a7
Author: Auke Kok <sofar at foo-projects.org>
Date:   Wed Jun 15 20:43:00 2011 -0700

    don't output anything unless there is progress.
    
    when PRE_BUILD is running, the voyeur code is already running and
    would print the status bar over the kconfig menu every 2 seconds.
    
    the fix is easy: when reaching the pipe read timeout, we can just
    loop and wait for more input again instead of printing the progress
    bar for no reason.
---
 var/lib/lunar/functions/logging.lunar |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/var/lib/lunar/functions/logging.lunar b/var/lib/lunar/functions/logging.lunar
index dad3956..a7d5238 100644
--- a/var/lib/lunar/functions/logging.lunar
+++ b/var/lib/lunar/functions/logging.lunar
@@ -48,6 +48,7 @@ progress() {
       STATUS=$?
       if [ $STATUS -gt 128 ]; then
         sleep 2
+	continue
       elif [ $STATUS -eq 1 ]; then
         echo -ne "\r [${X:0:60}] (100%)\n"
         exit
@@ -69,6 +70,7 @@ progress() {
       STATUS=$?
       if [ $STATUS -gt 128 ]; then
         sleep 2
+	continue
       elif [ $STATUS -eq 1 ]; then
         exit
       fi


More information about the Lunar-commits mailing list