[Lunar-commits] r22019 - lunar/trunk/var/lib/lunar/functions

Auke Kok sofar at lunar-linux.org
Tue Oct 31 18:33:06 CET 2006


Author: sofar
Date: 2006-10-31 18:33:06 +0100 (Tue, 31 Oct 2006)
New Revision: 22019

Modified:
   lunar/trunk/var/lib/lunar/functions/depends.lunar
Log:
depends cache speedup: before 5.2s, after 0.8s (warm cache).

Lurch: ty :)


Modified: lunar/trunk/var/lib/lunar/functions/depends.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/depends.lunar	2006-10-31 17:00:38 UTC (rev 22018)
+++ lunar/trunk/var/lib/lunar/functions/depends.lunar	2006-10-31 17:33:06 UTC (rev 22019)
@@ -398,10 +398,10 @@
 
     # fast method for re-creating the depends.cache, might take long though
     for DEPFILE in $DEPFILES ; do
-      MODULE=$(echo $DEPFILE | sed -e "s:$MOONBASE/::g" -e "s:/DEPENDS::g" -e 's/.*\/\([^\/]*\)$/\1/') . $DEPFILE
+      TMP=${DEPFILE%/*} MODULE=${TMP##*/} . $DEPFILE
     done > $TMP_DEP_CACHE &&
     install -m644 $TMP_DEP_CACHE $DEPENDS_CACHE 
-  
+
     temp_destroy $TMP_DEP_CACHE
   else
     verbose_msg "Skipping depends cache regeneration"



More information about the Lunar-commits mailing list