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

Auke Kok sofar at lunar-linux.org
Thu Jun 30 12:15:54 UTC 2005


Author: sofar
Date: 2005-06-30 12:15:51 +0000 (Thu, 30 Jun 2005)
New Revision: 15531

Modified:
   lunar/trunk/var/lib/lunar/functions/modules.lunar
Log:
Allow nested folders in zlocal as well->needed for putting the submission queue in zlocal for instance.


Modified: lunar/trunk/var/lib/lunar/functions/modules.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/modules.lunar	2005-06-30 12:04:43 UTC (rev 15530)
+++ lunar/trunk/var/lib/lunar/functions/modules.lunar	2005-06-30 12:15:51 UTC (rev 15531)
@@ -157,8 +157,8 @@
 
   ZLOCAL_OVERRIDES=${ZLOCAL_OVERRIDES:=off}
   if [ "$ZLOCAL_OVERRIDES" == "on" ] ; then
-    if [ -d "$MOONBASE/zlocal/$1" ] ; then
-      echo "zlocal"
+    if SECTION=$(find "$MOONBASE/zlocal/" -type d -name $1 | sed -e "s|$MOONBASE/||" -e "s|/$1$||" ) ; then
+	  echo $SECTION
       return 0
     fi
   fi



More information about the Lunar-commits mailing list