[GRASS-SVN] r59334 - grass/trunk/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Mar 25 09:22:02 PDT 2014
Author: martinl
Date: 2014-03-25 09:22:02 -0700 (Tue, 25 Mar 2014)
New Revision: 59334
Modified:
grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: fix checking svnurl
Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py 2014-03-25 15:30:21 UTC (rev 59333)
+++ grass/trunk/scripts/g.extension/g.extension.py 2014-03-25 16:22:02 UTC (rev 59334)
@@ -1026,9 +1026,11 @@
options['prefix'] = os.path.join(os.environ['HOME'], '.grass%s' % version[0], 'addons')
else:
options['prefix'] = os.environ['GRASS_ADDON_BASE']
- if options['svnurl'] == 'http://svn.osgeo.org/grass/grass-addons/grass7':
+ if 'svn.osgeo.org/grass/grass-addons/grass7' in options['svnurl']:
+ # use pregenerated modules XML file
xmlurl = "http://grass.osgeo.org/addons/grass%s" % version[0]
else:
+ # try to get modules XMl from SVN repository
xmlurl = options['svnurl']
if not xmlurl.endswith('/'):
More information about the grass-commit
mailing list