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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 17 04:48:20 PST 2015


Author: martinl
Date: 2015-12-17 04:48:20 -0800 (Thu, 17 Dec 2015)
New Revision: 67202

Modified:
   grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: fix 32bit issue

Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py	2015-12-17 11:33:58 UTC (rev 67201)
+++ grass/trunk/scripts/g.extension/g.extension.py	2015-12-17 12:48:20 UTC (rev 67202)
@@ -883,10 +883,14 @@
     # http://wingrass.fsv.cvut.cz/platform/grassXX/addonsX.X.X
     grass.message(_("Downloading precompiled GRASS Addons <%s>...") %
                   options['extension'])
+    if build_platform == 'x86_64':
+        platform = build_platform
+    else:
+        platform = 'x86'
     url = "http://wingrass.fsv.cvut.cz/%(platform)s/" \
           "grass%(major)s%(minor)s/addons/" \
           "grass-%(major)s.%(minor)s.%(patch)s/" % \
-        {'platform' : build_platform, 'major': version[0],
+        {'platform' : platform, 'major': version[0],
          'minor': version[1], 'patch': version[2]}
 
     grass.debug("url=%s" % url, 1)



More information about the grass-commit mailing list