[GRASS-SVN] r54730 - grass/trunk/scripts/g.extension

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


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

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


Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py	2013-01-21 17:06:44 UTC (rev 54729)
+++ grass/trunk/scripts/g.extension/g.extension.py	2013-01-21 17:29:46 UTC (rev 54730)
@@ -7,7 +7,7 @@
 #               Pythonized & upgraded for GRASS 7 by Martin Landa <landa.martin gmail.com>
 # PURPOSE:      Tool to download and install extensions from GRASS Addons SVN into 
 #               local GRASS installation
-# COPYRIGHT:    (C) 2009-2012 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
@@ -293,8 +293,10 @@
         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').strip()
             if mlist and name not in mlist:



More information about the grass-commit mailing list