[GRASS-SVN] r59568 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 3 02:25:23 PDT 2014
Author: martinl
Date: 2014-04-03 02:25:22 -0700 (Thu, 03 Apr 2014)
New Revision: 59568
Modified:
grass/trunk/lib/vector/Vlib/map.c
Log:
vlib: continue in deleting vector map even linked table not found or unable to delete
Modified: grass/trunk/lib/vector/Vlib/map.c
===================================================================
--- grass/trunk/lib/vector/Vlib/map.c 2014-04-03 06:17:12 UTC (rev 59567)
+++ grass/trunk/lib/vector/Vlib/map.c 2014-04-03 09:25:22 UTC (rev 59568)
@@ -440,8 +440,11 @@
if (Fi == NULL) {
G_warning(_("Database connection not defined for layer %d"),
Map.dblnk->field[i].number);
- Vect_close(&Map);
- return -1;
+ /*
+ Vect_close(&Map);
+ return -1;
+ */
+ continue;
}
G_debug(3, "Delete drv:db:table '%s:%s:%s'", Fi->driver,
Fi->database, Fi->table);
@@ -450,8 +453,11 @@
if (ret == -1) {
G_warning(_("Unable to find table <%s> linked to vector map <%s>"),
Fi->table, map);
- Vect_close(&Map);
- return -1;
+ /*
+ Vect_close(&Map);
+ return -1;
+ */
+ continue;
}
if (ret == 1) {
@@ -460,8 +466,11 @@
if (ret == DB_FAILED) {
G_warning(_("Unable to delete table <%s>"),
Fi->table);
- Vect_close(&Map);
- return -1;
+ /*
+ Vect_close(&Map);
+ return -1;
+ */
+ continue;
}
}
else {
More information about the grass-commit
mailing list