[GRASS-SVN] r54711 - grass/trunk/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 19 10:54:40 PST 2013
Author: martinl
Date: 2013-01-19 10:54:40 -0800 (Sat, 19 Jan 2013)
New Revision: 54711
Modified:
grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: fix install_extension_xml() when no metadata available
Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py 2013-01-19 15:14:30 UTC (rev 54710)
+++ grass/trunk/scripts/g.extension/g.extension.py 2013-01-19 18:54:40 UTC (rev 54711)
@@ -605,7 +605,7 @@
if not data:
grass.warning(_("No metadata available"))
- return
+ return []
fXML = os.path.join(options['prefix'], 'modules.xml')
# create an empty file if not exists
More information about the grass-commit
mailing list