[GRASS-SVN] r30940 - grass/trunk/general/g.mapsets

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 11 10:57:52 EDT 2008


Author: martinl
Date: 2008-04-11 10:57:52 -0400 (Fri, 11 Apr 2008)
New Revision: 30940

Modified:
   grass/trunk/general/g.mapsets/main_cmd.c
Log:
g.mapsets: verbose message for 'Mapset added/removed to/from search path'

Modified: grass/trunk/general/g.mapsets/main_cmd.c
===================================================================
--- grass/trunk/general/g.mapsets/main_cmd.c	2008-04-11 14:51:33 UTC (rev 30939)
+++ grass/trunk/general/g.mapsets/main_cmd.c	2008-04-11 14:57:52 UTC (rev 30940)
@@ -129,6 +129,10 @@
 	    mapset = *ptr;
 	    if (G__mapset_permissions (mapset) < 0)
 		G_fatal_error(_("Mapset <%s> not found"), mapset);
+	    else
+		G_verbose_message(_("Mapset <%s> added to search path"),
+				  mapset);
+
 	    nchoices++;
 	    strcat (Path, mapset);
 	    strcat (Path, " ");
@@ -150,8 +154,11 @@
 		if (strcmp(oldname, *ptr) == 0)
 		    found = 1;
 
-	    if (found)
+	    if (found) {
+		G_verbose_message(_("Mapset <%s> removed from search path"),
+				  oldname);
 		continue;
+	    }
 
 	    nchoices++;
 	    strcat (Path, oldname);



More information about the grass-commit mailing list