[GRASS-SVN] r49609 - grass-addons/tools/addons
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 7 08:32:31 EST 2011
Author: martinl
Date: 2011-12-07 05:32:31 -0800 (Wed, 07 Dec 2011)
New Revision: 49609
Modified:
grass-addons/tools/addons/build-xml.py
Log:
addons: show only major version in metadata file (version="6/7")
Modified: grass-addons/tools/addons/build-xml.py
===================================================================
--- grass-addons/tools/addons/build-xml.py 2011-12-07 12:55:54 UTC (rev 49608)
+++ grass-addons/tools/addons/build-xml.py 2011-12-07 13:32:31 UTC (rev 49609)
@@ -88,7 +88,7 @@
import grass.script.core as grass
fd.write('<?xml version="1.0" encoding="UTF-8"?>\n')
fd.write('<!DOCTYPE task SYSTEM "grass-addons.dtd">\n') # TODO
- fd.write('<addons version="%s">\n' % grass.version()['version'])
+ fd.write('<addons version="%s">\n' % grass.version()['version'].split('.')[0])
def footer(fd):
fd.write('</addons>\n')
More information about the grass-commit
mailing list