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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 26 07:02:27 PDT 2015


Author: wenzeslaus
Date: 2015-08-26 07:02:27 -0700 (Wed, 26 Aug 2015)
New Revision: 66029

Modified:
   grass/trunk/scripts/g.extension/g.extension.py
Log:
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).


Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py	2015-08-26 13:30:23 UTC (rev 66028)
+++ grass/trunk/scripts/g.extension/g.extension.py	2015-08-26 14:02:27 UTC (rev 66029)
@@ -178,6 +178,8 @@
 
 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 main():
     # check dependecies
-    if sys.platform != "win32":
+    if not flags['a'] and sys.platform != "win32":
         check_progs()
 
     original_url = options['url']



More information about the grass-commit mailing list