Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
ca95478c2d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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():
 def check_progs():
     """Check if the necessary programs are available"""
     """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'):
     for prog in ('make', 'gcc'):
         if not grass.find_program(prog, '--help'):
         if not grass.find_program(prog, '--help'):
             grass.fatal(_("'%s' required. Please install '%s' first.")
             grass.fatal(_("'%s' required. Please install '%s' first.")
@@ -1624,7 +1626,7 @@ def resolve_source_code(url=None, name=None):
 
 
 def main():
 def main():
     # check dependecies
     # check dependecies
-    if sys.platform != "win32":
+    if not flags['a'] and sys.platform != "win32":
         check_progs()
         check_progs()
 
 
     original_url = options['url']
     original_url = options['url']