[GRASS-SVN] r48066 - grass/trunk/scripts/db.droptable
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 2 10:58:52 EDT 2011
Author: neteler
Date: 2011-09-02 07:58:52 -0700 (Fri, 02 Sep 2011)
New Revision: 48066
Modified:
grass/trunk/scripts/db.droptable/db.droptable.py
Log:
improved test if table exists
Modified: grass/trunk/scripts/db.droptable/db.droptable.py
===================================================================
--- grass/trunk/scripts/db.droptable/db.droptable.py 2011-09-02 14:58:39 UTC (rev 48065)
+++ grass/trunk/scripts/db.droptable/db.droptable.py 2011-09-02 14:58:52 UTC (rev 48066)
@@ -52,7 +52,7 @@
# check if table exists
nuldev = file(os.devnull, 'w')
- if not grass.db_describe(table, stdout = nuldev, stderr = nuldev):
+ if not grass.db_table_exist(table, stdout = nuldev, stderr = nuldev):
grass.fatal(_("Table <%s> not found in current mapset") % table)
# check if table is used somewhere (connected to vector map)
More information about the grass-commit
mailing list