[Swift-commit] r2661 - provenancedb

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Mar 9 09:45:20 CDT 2009


Author: benc
Date: 2009-03-09 09:45:19 -0500 (Mon, 09 Mar 2009)
New Revision: 2661

Modified:
   provenancedb/import-all
   provenancedb/prov-to-sql.sh
Log:
Fix paths for calling log-processing code, due to changes in log-processing
module that have happened since provenancedb was last worked on.

Modified: provenancedb/import-all
===================================================================
--- provenancedb/import-all	2009-03-09 12:30:35 UTC (rev 2660)
+++ provenancedb/import-all	2009-03-09 14:45:19 UTC (rev 2661)
@@ -4,8 +4,8 @@
 # of individual runs will clean other files.
 
 source paths.source
+export PATH=$LOGDIR:$PATH
 
-
 pushd $LOGDIR
 ./create-everylog-vs-versions-data $LOGREPO
 popd
@@ -25,10 +25,12 @@
  if [ $version -ge 1538 ]; then
    echo -n "Log: $filename ... "
 
-EXISTING=$(psql -p 5435 -d $PROVDB -U benc --tuples-only -c "select count(*) from known_workflows where workflow_log_filename='$filename';")
-# echo EXISTING is X${EXISTING}X
+# TODO: this only works for psql, not for other DBs, so for now force it
+# to be non-existing
+#EXISTING=$(psql -p 5435 -d $PROVDB -U benc --tuples-only -c "select count(*) from known_workflows where workflow_log_filename='$filename';")
+EXISTING=0
 
-if [ $EXISTING -eq 0 ];  then
+if [ "$EXISTING" -eq "0" ];  then
 echo IMPORTING
 
 if grep --silent "DEBUG Loader Swift finished with no errors" $filename; then

Modified: provenancedb/prov-to-sql.sh
===================================================================


Property changes on: provenancedb/prov-to-sql.sh
___________________________________________________________________
Name: svn:executable
   + *




More information about the Swift-commit mailing list