Skip to content

Commit

Permalink
quick fix of g.extension on MS Windows (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Nov 2, 2019
1 parent 54cf0c2 commit 4a98762
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/g.extension/g.extension.py
Expand Up @@ -672,6 +672,8 @@ def install_extension(source, url, xmlurl):
return

ret = 0
installed_modules = []
tmp_dir = None
for module in mlist:
if sys.platform == "win32":
ret += install_extension_win(module)
Expand Down Expand Up @@ -1026,7 +1028,7 @@ def install_extension_win(name):
"grass-%(major)s.%(minor)s.%(patch)s" % \
{'platform': platform,
'major': version[0], 'minor': version[1],
'patch': 'dev'}
'patch': version[2]}

# resolve ZIP URL
source, url = resolve_source_code(url='{0}/{1}.zip'.format(base_url, name))
Expand Down

0 comments on commit 4a98762

Please sign in to comment.