Author: andy
Date: Tue Oct 29 13:42:04 2013
New Revision: 1536712

URL: http://svn.apache.org/r1536712
Log:
Better detection of existing databases

Modified:
    jena/trunk/apache-jena/bin/tdbloader2worker

Modified: jena/trunk/apache-jena/bin/tdbloader2worker
URL: 
http://svn.apache.org/viewvc/jena/trunk/apache-jena/bin/tdbloader2worker?rev=1536712&r1=1536711&r2=1536712&view=diff
==============================================================================
--- jena/trunk/apache-jena/bin/tdbloader2worker (original)
+++ jena/trunk/apache-jena/bin/tdbloader2worker Tue Oct 29 13:42:04 2013
@@ -22,7 +22,7 @@
 set -e
 
 # Sort order is ASCII
-export LC_LOCALE="C"
+export LC_ALL="C"
 
 log() { echo " $(date $DATE)" "$@" ; }
 
@@ -58,7 +58,9 @@ else 
     if [ "$ARG1" = "$LOC" ] ; then echo $USAGE 1>&2 ; exit 1 ; fi
 fi
 
-if test -n "$(find "$LOC" -maxdepth 1 -type f -print -quit)"
+# Look for any index and data files in the directory.
+# Skip a possible configuration file
+if test -n "$(find "$LOC" -maxdepth 1 -type f ! -name 'this.*' -print -quit)"
 then 
     echo "Not empty: $LOC"
     exit 1


Reply via email to