[Lunar-commits] CVS: theedge/var/lib/lunar/functions download.lunar, 1.42, 1.43

Auke Kok sofar at lunar-linux.org
Sat Nov 20 23:00:39 UTC 2004


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory espresso.foo-projects.org:/tmp/cvs-serv18501

Modified Files:
	download.lunar 
Log Message:
Extremely horribly simplified show_download_progress. Nice thing is that it actually works too. SPend some time testing it and verified OK.


Index: download.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/download.lunar,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- download.lunar	2 May 2004 09:32:59 -0000	1.42
+++ download.lunar	20 Nov 2004 23:00:37 -0000	1.43
@@ -443,33 +443,15 @@
 }
 
 
-show_download_progress()  {
-  debug_msg "show_download_progress ($@)"
-  if [ -f "$TEMP_DOWNLOADLOG" ] ; then
-    if [ -z "$LC_OLD" ] ; then
-      LC_OLD=0
-    fi
-
-    LC=`cat $TEMP_DOWNLOADLOG 2>/dev/null | wc -l | tr -d ' '`
-
-    if [ "$LC" != "$LC_OLD" ] ; then
-      (( LC_OLD++ ))
-      sed  -n ${LC_OLD},${LC}p $TEMP_DOWNLOADLOG
-      LC_OLD=$LC
-    fi
-  fi
-}
-
-
 show_downloading() {
   debug_msg "show_downloading ($@)"
   if [ -e "$TEMP_DOWNLOADLOG" ] ; then
     verbose_msg "====== download progess:"
     while lget_locked $MODULE ; do
-      show_download_progress
       sleep 1
     done
-    show_download_progress
+    cat $TEMP_DOWNLOADLOG
+    > $TEMP_DOWNLOADLOG
     verbose_msg "====== end download progress"
   fi
 }



More information about the Lunar-commits mailing list