[Ocfs2-commits] manish commits r1858 - trunk

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Jan 27 19:16:09 CST 2005


Author: manish
Date: 2005-01-27 19:16:06 -0600 (Thu, 27 Jan 2005)
New Revision: 1858

Modified:
   trunk/configure.in
Log:
Don't run rpm on things that don't need it


Modified: trunk/configure.in
===================================================================
--- trunk/configure.in	2005-01-28 00:29:54 UTC (rev 1857)
+++ trunk/configure.in	2005-01-28 01:16:06 UTC (rev 1858)
@@ -51,9 +51,11 @@
   QUERYFILE=/etc/SuSE-release
 fi
 
-RPMARCH="`rpm -qf $QUERYFILE --queryformat \"%{ARCH}\"`"
-if test -n "$RPMARCH" -a "$RPMARCH" != "noarch"; then
-  USERARCH="$RPMARCH"
+if test -n "$QUERYFILE"; then
+  RPMARCH="`rpm -qf $QUERYFILE --queryformat \"%{ARCH}\"`"
+  if test -n "$RPMARCH" -a "$RPMARCH" != "noarch"; then
+    USERARCH="$RPMARCH"
+  fi
 fi
 
 if test -z "$USERARCH"; then



More information about the Ocfs2-commits mailing list