[izpack-changes] izpack-src/src/lib/com/izforge/izpack/util OsVersion.java,1.12,1.13

eppelman nobody at sheep.berlios.de
Wed Jan 25 17:47:29 CET 2006


Update of /cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/util
In directory sheep:/tmp/cvs-serv27633/src/lib/com/izforge/izpack/util

Modified Files:
	OsVersion.java 
Log Message:
-Added detection of Tru64 especially for getFreeSpace() with bdf.
-Fixed detection for Open/Suse 10.

Index: OsVersion.java
===================================================================
RCS file: /cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/util/OsVersion.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- OsVersion.java	11 Sep 2005 08:40:23 -0000	1.12
+++ OsVersion.java	25 Jan 2006 16:47:26 -0000	1.13
@@ -50,6 +50,9 @@
 
     /** True if this is SunOS. */
     public static final boolean IS_SUNOS = StringTool.startsWithIgnoreCase(OS_NAME, SUNOS );
+    
+    /** True if this is Tru64. */
+    public static final boolean IS_TRU64 = StringTool.startsWithIgnoreCase(OS_NAME, TRU64 );
 
     /** True if this is OS/2. */
     public static final boolean IS_OS2 = StringTool.startsWith(OS_NAME, OS_2 );
@@ -85,7 +88,7 @@
 
     /** True if SuSE Linux was detected */
     public static final boolean IS_SUSE_LINUX = IS_LINUX
-            && FileUtil.fileContains( getReleaseFileName(), SUSE );
+            && FileUtil.fileContains( getReleaseFileName(), SUSE, true ); /*  caseInsensitive , since 'SUSE' 10 */
 
     /** True if Debian Linux or derived was detected */
     public static final boolean IS_DEBIAN_LINUX = (IS_LINUX




More information about the izpack-changes mailing list