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

Auke Kok sofar at lunar-linux.org
Sat Dec 2 06:39:03 CET 2006


Author: sofar
Date: 2006-12-02 06:39:03 +0100 (Sat, 02 Dec 2006)
New Revision: 22393

Modified:
   lunar/trunk/var/lib/lunar/functions/modules.lunar
Log:
Bugfix: allow DETAILS.x86_64, but broken for using lin -w on DETAILS for other archs. Hey, it fixes a big problem ;)


Modified: lunar/trunk/var/lib/lunar/functions/modules.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/modules.lunar	2006-12-02 05:24:22 UTC (rev 22392)
+++ lunar/trunk/var/lib/lunar/functions/modules.lunar	2006-12-02 05:39:03 UTC (rev 22393)
@@ -230,15 +230,15 @@
     return 1
   else
     SCRIPT_DIRECTORY=$MOONBASE/$SECTION/$1
-    if [[ ! -f $SCRIPT_DIRECTORY/DETAILS ]] ; then
+    if ! has_module_file $1 DETAILS ; then
       error_message  "${PROBLEM_COLOR}Module ${MODULE_COLOR}${1}" \
                "${DEFAULT_COLOR}${PROBLEM_COLOR}has no ${FILE_COLOR}DETAILS" \
                "${DEFAULT_COLOR}${PROBLEM_COLOR}file!${DEFAULT_COLOR}"
       return 1
     fi
-   
+
     if [[ -z "$WANT_VERSION" ]] ; then
-      . $SCRIPT_DIRECTORY/DETAILS &> /dev/null || return -1
+      run_module_file $1 DETAILS &> /dev/null || return -1
     else
       TMP_DETAILS=$(temp_create "details.version")
       cat $MOONBASE/$SECTION/$1/DETAILS | sed '/^\s*VERSION=/d' > $TMP_DETAILS



More information about the Lunar-commits mailing list