[GRASS-SVN] r49744 - grass/branches/releasebranch_6_4/gui/scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 14 07:40:33 EST 2011


Author: martinl
Date: 2011-12-14 04:40:33 -0800 (Wed, 14 Dec 2011)
New Revision: 49744

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


Modified: grass/branches/releasebranch_6_4/gui/scripts/g.extension.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/scripts/g.extension.py	2011-12-14 12:37:31 UTC (rev 49743)
+++ grass/branches/releasebranch_6_4/gui/scripts/g.extension.py	2011-12-14 12:40:33 UTC (rev 49744)
@@ -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