[GRASS-SVN] r49725 - grass/trunk/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 13 16:21:59 EST 2011
Author: martinl
Date: 2011-12-13 13:21:59 -0800 (Tue, 13 Dec 2011)
New Revision: 49725
Modified:
grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: more guisections
minor fix in listing installed extensions
Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py 2011-12-13 21:10:35 UTC (rev 49724)
+++ grass/trunk/scripts/g.extension/g.extension.py 2011-12-13 21:21:59 UTC (rev 49725)
@@ -45,7 +45,6 @@
#% type: string
#% key_desc: url
#% description: SVN Addons repository URL
-#% required: yes
#% answer: http://svn.osgeo.org/grass/grass-addons/grass7
#%end
#%option
@@ -84,18 +83,22 @@
#%flag
#% key: s
#% description: Install system-wide (may need system administrator rights)
+#% guisection: Install
#%end
#%flag
#% key: d
#% description: Download source code and exit
+#% guisection: Install
#%end
#%flag
#% key: i
#% description: Don't install new extension, just compile it
+#% guisection: Install
#%end
#%flag
#% key: f
#% description: Force removal when uninstalling extension (operation=remove)
+#% guisection: Remove
#%end
import os
@@ -706,7 +709,9 @@
return 0
elif flags['a']:
grass.message(_("List of installed extensions:"))
- print os.linesep.join(get_installed_extensions())
+ elist = get_installed_extensions()
+ if elist:
+ print os.linesep.join(elist)
return 0
else:
if not options['extension']:
More information about the grass-commit
mailing list