[GRASS-SVN] r49743 - grass/branches/develbranch_6/gui/scripts
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 14 07:37:31 EST 2011
Author: martinl
Date: 2011-12-14 04:37:31 -0800 (Wed, 14 Dec 2011)
New Revision: 49743
Modified:
grass/branches/develbranch_6/gui/scripts/g.extension.py
Log:
g.extension: inform user when no extension is installed (-a)
Modified: grass/branches/develbranch_6/gui/scripts/g.extension.py
===================================================================
--- grass/branches/develbranch_6/gui/scripts/g.extension.py 2011-12-14 12:36:00 UTC (rev 49742)
+++ grass/branches/develbranch_6/gui/scripts/g.extension.py 2011-12-14 12:37:31 UTC (rev 49743)
@@ -756,10 +756,12 @@
list_available_extensions()
return 0
elif flags['a']:
- grass.message(_("List of installed extensions:"))
elist = get_installed_extensions()
if elist:
+ grass.message(_("List of installed extensions:"))
print os.linesep.join(elist)
+ else:
+ grass.info(_("No extension installed"))
return 0
else:
if not options['extension']:
More information about the grass-commit
mailing list