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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 8 10:43:16 PDT 2014


Author: martinl
Date: 2014-04-08 10:43:16 -0700 (Tue, 08 Apr 2014)
New Revision: 59644

Modified:
   grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: sync'ed with relbr70

Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py	2014-04-08 17:41:49 UTC (rev 59643)
+++ grass/trunk/scripts/g.extension/g.extension.py	2014-04-08 17:43:16 UTC (rev 59644)
@@ -688,9 +688,11 @@
 
 # install extension on MS Windows
 def install_extension_win(name):
-    ### TODO: do not use hardcoded url - http://wingrass.fsv.cvut.cz/grassXX/addonsX.X.X
+    ### do not use hardcoded url - http://wingrass.fsv.cvut.cz/grassXX/addonsX.X.X
     grass.message(_("Downloading precompiled GRASS Addons <%s>...") % options['extension'])
-    url = "http://wingrass.fsv.cvut.cz/grass%s%s/addons" % (version[0], version[1])
+    url = "http://wingrass.fsv.cvut.cz/grass%(major)s%(minor)s/addons/grass-%(major)s.%(minor)s.%(patch)s/" % \
+        { 'major' : version[0], 'minor' : version[1], 'patch' : version[2]}
+    
     grass.debug("url=%s" % url, 1)
 
     try:



More information about the grass-commit mailing list