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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 14 07:36:00 EST 2011


Author: martinl
Date: 2011-12-14 04:36:00 -0800 (Wed, 14 Dec 2011)
New Revision: 49742

Modified:
   grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: inform user when no extension is installed (-a)


Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py	2011-12-14 12:32:15 UTC (rev 49741)
+++ grass/trunk/scripts/g.extension/g.extension.py	2011-12-14 12:36:00 UTC (rev 49742)
@@ -706,10 +706,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