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

Auke Kok sofar at lunar-linux.org
Thu Jun 21 04:02:22 CEST 2007


Author: sofar
Date: 2007-06-21 04:02:21 +0200 (Thu, 21 Jun 2007)
New Revision: 24944

Modified:
   lunar/trunk/var/lib/lunar/functions/modules.lunar
Log:
Skip zlocal folders when they do not have a DETAILS file. This allows the _zpatches idea from Ratler to work.


Modified: lunar/trunk/var/lib/lunar/functions/modules.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/modules.lunar	2007-06-21 00:58:15 UTC (rev 24943)
+++ lunar/trunk/var/lib/lunar/functions/modules.lunar	2007-06-21 02:02:21 UTC (rev 24944)
@@ -169,12 +169,12 @@
 
 	# if using ZLOCAL, we must search there first
 	if [[ "${ZLOCAL_OVERRIDES:-off}" == "on" ]] ; then
-		if SECTION=$(find "$MOONBASE/zlocal/" -type d -name $1 | sed -e "s|$MOONBASE/||;s|/$1$||" ) ; then
-			if [[ -n "$SECTION" ]]; then
+		for SECTION in $(find "$MOONBASE/zlocal/" -type d -name $1 | sed -e "s|$MOONBASE/||;s|/$1$||" ) ; do
+			if [[ -f "$MOONBASE/$SECTION/$1/DETAILS" ]]; then
 				echo $SECTION
 				return 0
 			fi
-		fi
+		done
 	fi
 
 	# otherwise check for ordinary modules named that way



More information about the Lunar-commits mailing list