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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 20 09:07:58 PDT 2012


Author: martinl
Date: 2012-08-20 09:07:58 -0700 (Mon, 20 Aug 2012)
New Revision: 52786

Modified:
   grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: skip updating manual when 'd' flag is given


Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py	2012-08-20 16:05:06 UTC (rev 52785)
+++ grass/trunk/scripts/g.extension/g.extension.py	2012-08-20 16:07:58 UTC (rev 52786)
@@ -453,9 +453,13 @@
             ret += install_extension_other(module)
         if len(mlist) > 1:
             print '-' * 60
-        grass.verbose(_("Updating manual page for <%s>...") % module)
-        update_manual_page(module)
+        if not flags['d']:
+            grass.verbose(_("Updating manual page for <%s>...") % module)
+            update_manual_page(module)
     
+    if flags['d']:
+        return
+    
     if ret != 0:
         grass.warning(_('Installation failed, sorry. Please check above error messages.'))
     else:
@@ -467,7 +471,6 @@
         grass.warning(_('This add-on module will not function until you set the '
                         'GRASS_ADDON_BASE environment variable (see "g.manual variables")'))
 
-
 # update local meta-file when installing new extension (toolbox / modules)
 def install_toolbox_xml(name):
     # read metadata from remote server (toolboxes)



More information about the grass-commit mailing list