Selaa lähdekoodia

g.extension: fix wingrass link, see https://lists.osgeo.org/pipermail/grass-dev/2016-January/078472.html

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67597 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 vuotta sitten
vanhempi
commit
879b9c196d
1 muutettua tiedostoa jossa 6 lisäystä ja 5 poistoa
  1. 6 5
      scripts/g.extension/g.extension.py

+ 6 - 5
scripts/g.extension/g.extension.py

@@ -8,7 +8,7 @@
 #               Vaclav Petras <wenzeslaus gmail com> (support for general sources)
 # PURPOSE:      Tool to download and install extensions into local installation
 #
-# COPYRIGHT:    (C) 2009-2015 by Markus Neteler, and the GRASS Development Team
+# COPYRIGHT:    (C) 2009-2016 by Markus Neteler, and the GRASS Development Team
 #
 #               This program is free software under the GNU General
 #               Public License (>=v2). Read the file COPYING that
@@ -888,11 +888,12 @@ def install_extension_win(name):
         platform = build_platform
     else:
         platform = 'x86'
-    base_url = "http://wingrass.fsv.cvut.cz/%(platform)s/" \
-               "grass%(major)s%(minor)s/addons/" \
+    base_url = "http://wingrass.fsv.cvut.cz/" \
+               "grass%(major)s%(minor)s/%(platform)s/addons/" \
                "grass-%(major)s.%(minor)s.%(patch)s" % \
-               {'platform' : platform, 'major': version[0],
-                'minor': version[1], 'patch': version[2]}
+               {'platform' : platform,
+                'major': version[0], 'minor': version[1],
+                'patch': version[2]}
 
     # resolve ZIP URL
     source, url = resolve_source_code(url='{}/{}.zip'.format(base_url, name))