[GRASS-SVN] r69993 - grass/branches/releasebranch_7_2/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 4 11:11:48 PST 2016


Author: martinl
Date: 2016-12-04 11:11:48 -0800 (Sun, 04 Dec 2016)
New Revision: 69993

Modified:
   grass/branches/releasebranch_7_2/lib/gis/find_file.c
Log:
libgis: map (data element) found in more mapsets - turn warning into important message
        (merge r69992 from trunk)


Modified: grass/branches/releasebranch_7_2/lib/gis/find_file.c
===================================================================
--- grass/branches/releasebranch_7_2/lib/gis/find_file.c	2016-12-04 19:06:33 UTC (rev 69992)
+++ grass/branches/releasebranch_7_2/lib/gis/find_file.c	2016-12-04 19:11:48 UTC (rev 69993)
@@ -111,8 +111,8 @@
 		if (!pselmapset)
 		    pselmapset = pmapset;
 		else if (element == pelement)
-		    G_warning(_("'%s/%s' was found in more mapsets (also found in <%s>)"),
-			      element, pname, pmapset);
+		    G_important_message(_("Data element '%s/%s' was found in more mapsets (also found in <%s>)"),
+                                        element, pname, pmapset);
 		cnt++;
 	    }
 	}
@@ -124,7 +124,7 @@
 	    if (access(path, 0) == 0) {
 		/* If the same name exists in more mapsets and print a warning */
 		if (cnt > 1 && element == pelement)
-		    G_warning(_("Using <%s@%s>"),
+		    G_important_message(_("Using <%s@%s>..."),
 			      pname, pselmapset);
 	    
 		return G_store(pselmapset);



More information about the grass-commit mailing list