[GRASS-SVN] r54238 - grass/trunk/scripts/v.db.reconnect.all

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 7 13:53:25 PST 2012


Author: martinl
Date: 2012-12-07 13:53:25 -0800 (Fri, 07 Dec 2012)
New Revision: 54238

Modified:
   grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.py
Log:
v.db.reconnnect.all: bugfix - don't use substituted new_database


Modified: grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.py
===================================================================
--- grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.py	2012-12-07 20:35:43 UTC (rev 54237)
+++ grass/trunk/scripts/v.db.reconnect.all/v.db.reconnect.all.py	2012-12-07 21:53:25 UTC (rev 54238)
@@ -181,9 +181,9 @@
                     create_index(new_driver, new_database, new_schema_table,
                                  table + '_' + key, key)
                 
-                # reconnect tables
+                # reconnect tables (don't use substituted new_database)
                 if 0 != grass.run_command('v.db.connect', flags = 'o', quiet = True, map = vect,
-                                          layer = layer, driver = new_driver, database = new_database,
+                                          layer = layer, driver = new_driver, database = options['new_database'],
                                           table = new_schema_table, key = key):
                     grass.warning(_("Operation canceled"))
                 



More information about the grass-commit mailing list