[GRASS-SVN] r62846 - grass/branches/releasebranch_7_0/scripts/db.droptable

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 21 03:27:35 PST 2014


Author: lucadelu
Date: 2014-11-21 03:27:35 -0800 (Fri, 21 Nov 2014)
New Revision: 62846

Modified:
   grass/branches/releasebranch_7_0/scripts/db.droptable/db.droptable.py
Log:
db.droptable: fix it using the new behaviour of db_table_in_vector

Modified: grass/branches/releasebranch_7_0/scripts/db.droptable/db.droptable.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/db.droptable/db.droptable.py	2014-11-21 04:00:29 UTC (rev 62845)
+++ grass/branches/releasebranch_7_0/scripts/db.droptable/db.droptable.py	2014-11-21 11:27:35 UTC (rev 62846)
@@ -75,7 +75,7 @@
 
     # check if table is used somewhere (connected to vector map)
     used = grass.db.db_table_in_vector(table)
-    if len(used) > 0:
+    if used:
         grass.warning(_("Deleting table <%s> which is attached to following map(s):") % table)
         for vect in used:
             grass.warning("%s" % vect)



More information about the grass-commit mailing list