[Fai-commit] r4535 - trunk/bin

lange at alioth.debian.org lange at alioth.debian.org
Tue Aug 28 09:45:26 UTC 2007


Author: lange
Date: 2007-08-28 09:45:26 +0000 (Tue, 28 Aug 2007)
New Revision: 4535

Modified:
   trunk/bin/fai-mirror
Log:
also match lowercase class names (for hostsnames)


Modified: trunk/bin/fai-mirror
===================================================================
--- trunk/bin/fai-mirror	2007-08-28 09:44:27 UTC (rev 4534)
+++ trunk/bin/fai-mirror	2007-08-28 09:45:26 UTC (rev 4535)
@@ -25,7 +25,7 @@
 # MA 02111-1307, USA.
 #*********************************************************************
 
-version="Version 1.9.6, 4-august-2007"
+version="Version 1.9.7, 28-august-2007"
 
 # variables: NFSROOT, FAI_CONFIGDIR
 
@@ -211,7 +211,7 @@
 
     set +e
     # all available file names are classes
-    classes=$(cd $FAI_CONFIGDIR/package_config; ls -1 | egrep -i "^[A-Z0-9_-]+$")
+    classes=$(cd $FAI_CONFIGDIR/package_config; ls -1 | egrep -i "^[a-zA-Z0-9_-]+$")
     addclasses=$(grep -h PACKAGES $FAI_CONFIGDIR/package_config/* | sed -e 's/#.*//' | awk '{printf $3"\n"$4"\n"$5"\n"$6"\n"}')
     export classes=$(echo -e "$classes\n$addclasses\n" | sort | uniq)
     [ -n "$exclasses" ] && excludeclass $exclasses




More information about the Fai-commit mailing list