[Ocfs2-commits] jlbec commits r3003 - in branches/ocfs2-1.2/vendor: rhel4 rhel5

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Apr 11 11:36:41 PDT 2007


Author: jlbec
Date: 2007-04-11 11:36:39 -0700 (Wed, 11 Apr 2007)
New Revision: 3003

Modified:
   branches/ocfs2-1.2/vendor/rhel4/vendor.guess
   branches/ocfs2-1.2/vendor/rhel5/
Log:

Fix vendor/rhel4/vendor.guess to handle all rhel4-like distributions.

Signed-off-by: smushran



Modified: branches/ocfs2-1.2/vendor/rhel4/vendor.guess
===================================================================
--- branches/ocfs2-1.2/vendor/rhel4/vendor.guess	2007-04-02 01:35:25 UTC (rev 3002)
+++ branches/ocfs2-1.2/vendor/rhel4/vendor.guess	2007-04-11 18:36:39 UTC (rev 3003)
@@ -5,9 +5,10 @@
     exit 1
 fi
 
-if [ "`rpm -qf /etc/redhat-release --qf '%{VERSION}' 2>/dev/null`" != "4AS" ]
-then
-    exit 1
-fi
+case "`rpm -qf /etc/redhat-release --qf '%{VERSION}' 2>/dev/null`" in
+    4[AEW]S) ;;
+    4) ;;
+    *) exit 1 ;;
+esac
 
 exit 0


Property changes on: branches/ocfs2-1.2/vendor/rhel5
___________________________________________________________________
Name: svn:ignore
   + ocfs2.spec-generic
.*.sw?





More information about the Ocfs2-commits mailing list