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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 30 06:01:50 EDT 2011


Author: martinl
Date: 2011-06-30 03:01:50 -0700 (Thu, 30 Jun 2011)
New Revision: 46861

Modified:
   grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: fix find_program() call


Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py	2011-06-30 09:57:02 UTC (rev 46860)
+++ grass/trunk/scripts/g.extension/g.extension.py	2011-06-30 10:01:50 UTC (rev 46861)
@@ -294,7 +294,7 @@
     if not gisbase:
         grass.fatal(_('$GISBASE not defined'))
     
-    if grass.find_program(options['extension']):
+    if grass.find_program(options['extension'], ['--help']):
         grass.warning(_("Extension '%s' already installed. Will be updated...") % options['extension'])
     
     gui_list = list_wxgui_extensions(print_module = False)



More information about the grass-commit mailing list