Browse Source

g.extension: we don't need to check dependencies when just listing local extensions

Fixes issue when GUI was started, listed addons for module tree and failed because of missing make, gcc (and svn potentionally).


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66029 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 9 years ago
parent
commit
ca95478c2d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      scripts/g.extension/g.extension.py

+ 3 - 1
scripts/g.extension/g.extension.py

@@ -178,6 +178,8 @@ def etree_fromurl(url, proxies=None):
 
 def check_progs():
     """Check if the necessary programs are available"""
+    # TODO: we need svn for the Subversion repo downloads
+    # also git would be tested once supported
     for prog in ('make', 'gcc'):
         if not grass.find_program(prog, '--help'):
             grass.fatal(_("'%s' required. Please install '%s' first.")
@@ -1624,7 +1626,7 @@ def resolve_source_code(url=None, name=None):
 
 def main():
     # check dependecies
-    if sys.platform != "win32":
+    if not flags['a'] and sys.platform != "win32":
         check_progs()
 
     original_url = options['url']