[GRASS-SVN] r54732 - grass/branches/releasebranch_6_4/gui/scripts
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 21 09:37:15 PST 2013
Author: martinl
Date: 2013-01-21 09:37:15 -0800 (Mon, 21 Jan 2013)
New Revision: 54732
Modified:
grass/branches/releasebranch_6_4/gui/scripts/g.extension.py
Log:
g.extension: scan svn when module.xml is not available or broken
(merge r54730 from devbr6)
Modified: grass/branches/releasebranch_6_4/gui/scripts/g.extension.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/scripts/g.extension.py 2013-01-21 17:34:46 UTC (rev 54731)
+++ grass/branches/releasebranch_6_4/gui/scripts/g.extension.py 2013-01-21 17:37:15 UTC (rev 54732)
@@ -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