r3464 - jhalfs/trunk/common

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Wed Aug 15 09:27:56 PDT 2007


Author: manuel
Date: 2007-08-15 10:27:56 -0600 (Wed, 15 Aug 2007)
New Revision: 3464

Modified:
   jhalfs/trunk/common/makefile-functions
Log:
Test fix to avoid a race condition.

Modified: jhalfs/trunk/common/makefile-functions
===================================================================
--- jhalfs/trunk/common/makefile-functions	2007-08-13 18:58:49 UTC (rev 3463)
+++ jhalfs/trunk/common/makefile-functions	2007-08-15 16:27:56 UTC (rev 3464)
@@ -64,7 +64,7 @@
 define remove_existing_dirs
   @PKG_PATH=`ls -t $(SRCSDIR)/$(1) | head -n1` && \
   ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \
-  test -n "$$ROOT" -a -d $(SRCSDIR)/$$ROOT && \
+  [ -n "$$ROOT" ] && [ -d $(SRCSDIR)/$$ROOT ] && \
   rm -rf $(SRCSDIR)/$$ROOT && \
   rm -rf $(SRCSDIR)/$${ROOT%-*}-build
 endef
@@ -72,7 +72,7 @@
 define remove_existing_dirs2
   @PKG_PATH=`ls -t $(SRC)/$(1) | head -n1` && \
   ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \
-  test -n "$$ROOT" -a -d $(SRC)/$$ROOT && \
+  [ -n "$$ROOT" ] && [ -d $(SRC)/$$ROOT ] && \
   rm -rf $(SRC)/$$ROOT && \
   rm -rf $(SRC)/$${ROOT%-*}-build
 endef




More information about the alfs-log mailing list