[GRASS-SVN] r54731 - grass/branches/develbranch_6/gui/scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 21 09:34:46 PST 2013


Author: martinl
Date: 2013-01-21 09:34:46 -0800 (Mon, 21 Jan 2013)
New Revision: 54731

Modified:
   grass/branches/develbranch_6/gui/scripts/g.extension.py
Log:
g.extension: scan svn when module.xml is not available or broken


Modified: grass/branches/develbranch_6/gui/scripts/g.extension.py
===================================================================
--- grass/branches/develbranch_6/gui/scripts/g.extension.py	2013-01-21 17:29:46 UTC (rev 54730)
+++ grass/branches/develbranch_6/gui/scripts/g.extension.py	2013-01-21 17:34:46 UTC (rev 54731)
@@ -7,7 +7,7 @@
 #               Pythonized by Martin Landa
 # PURPOSE:      Tool to download and install extensions from GRASS Addons SVN into 
 #               local GRASS installation
-# COPYRIGHT:    (C) 2009-2011 by Markus Neteler, and the GRASS Development Team
+# COPYRIGHT:    (C) 2009-2013 by Markus Neteler, and the GRASS Development Team
 #
 #               This program is free software under the GNU General
 #               Public License (>=v2). Read the file COPYING that
@@ -183,7 +183,9 @@
         try:
             tree = etree.fromstring(f.read())
         except:
-            grass.fatal(_("Unable to parse '%s'") % url)
+            grass.warning(_("Unable to parse '%s'. Trying to scan SVN (may take some time)...") % url)
+            list_available_extensions_svn()
+            return
         
         for mnode in tree.findall('task'):
             name = mnode.get('name')



More information about the grass-commit mailing list