[GRASS-SVN] r47331 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 31 06:20:58 EDT 2011


Author: martinl
Date: 2011-07-31 03:20:58 -0700 (Sun, 31 Jul 2011)
New Revision: 47331

Modified:
   grass/trunk/lib/vector/Vlib/open.c
Log:
vlib: ignore OGR file for v.external


Modified: grass/trunk/lib/vector/Vlib/open.c
===================================================================
--- grass/trunk/lib/vector/Vlib/open.c	2011-07-31 09:43:58 UTC (rev 47330)
+++ grass/trunk/lib/vector/Vlib/open.c	2011-07-31 10:20:58 UTC (rev 47331)
@@ -719,7 +719,8 @@
     }
 
     /* determine output format native or ogr */
-    if (G_find_file2("", "OGR", G_mapset())) {
+    if (strcmp(G_program_name(), "v.external") != 0 &&
+	G_find_file2("", "OGR", G_mapset())) {
 	/* OGR */
 	FILE *fp;
 	struct Key_Value *key_val;



More information about the grass-commit mailing list