[GRASS-SVN] r29591 - grass/trunk/scripts/db.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 7 07:26:15 EST 2008


Author: neteler
Date: 2008-01-07 07:26:15 -0500 (Mon, 07 Jan 2008)
New Revision: 29591

Modified:
   grass/trunk/scripts/db.in.ogr/db.in.ogr
Log:
also catch file not found error

Modified: grass/trunk/scripts/db.in.ogr/db.in.ogr
===================================================================
--- grass/trunk/scripts/db.in.ogr/db.in.ogr	2008-01-07 11:00:22 UTC (rev 29590)
+++ grass/trunk/scripts/db.in.ogr/db.in.ogr	2008-01-07 12:26:15 UTC (rev 29591)
@@ -108,7 +108,8 @@
   LAYER="layer=$GIS_OPT_DB_TABLE"
 fi
 
-WARNING="`v.in.ogr --q dsn=\"$GIS_OPT_DSN\" $LAYER out=$GIS_OPT_OUTPUT -o 2>&1 | grep cat`"
+# check ERRORs and cat and cat_ issues (maybe problem with translated messages)
+WARNING="`v.in.ogr --q dsn=\"$GIS_OPT_DSN\" $LAYER out=$GIS_OPT_OUTPUT -o 2>&1 | grep 'ERROR\|cat' | grep -v 'truncated'`"
 #if [ $? -ne 0 ] ;  then
 if [ ! -z "$WARNING" ] ; then
    if [ ! -z "$GIS_OPT_DB_TABLE" ] ; then



More information about the grass-commit mailing list