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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 27 14:45:31 EDT 2008


Author: glynn
Date: 2008-09-27 14:45:31 -0400 (Sat, 27 Sep 2008)
New Revision: 33569

Modified:
   grass/trunk/scripts/db.in.ogr/db.in.ogr.py
Log:
Fix bug in db.in.ogr.py


Modified: grass/trunk/scripts/db.in.ogr/db.in.ogr.py
===================================================================
--- grass/trunk/scripts/db.in.ogr/db.in.ogr.py	2008-09-27 18:32:36 UTC (rev 33568)
+++ grass/trunk/scripts/db.in.ogr/db.in.ogr.py	2008-09-27 18:45:31 UTC (rev 33569)
@@ -100,11 +100,11 @@
 
     # ... and immediately drop the empty geometry
     vectfile = grass.find_file(output, element = 'vector', mapset = mapset)['file']
-    if not file:
+    if not vectfile:
 	grass.fatal("Something went wrong. Should not happen")
     else:
 	# remove the vector part
-	grass.try_remove(file)
+	grass.try_remove(vectfile)
 
     # get rid of superfluous auto-added cat column (and cat_ if present)
     grass.run_command('db.dropcol', quiet = True, flags = 'f', table = output,



More information about the grass-commit mailing list