浏览代码

g.mapsets: print message when mapset already in the path

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57971 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父节点
当前提交
575c2cf3c6
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      general/g.mapsets/main.c

+ 3 - 1
general/g.mapsets/main.c

@@ -203,8 +203,10 @@ int main(int argc, char *argv[])
 
 
             mapset = substitute_mapset(*ptr);
             mapset = substitute_mapset(*ptr);
 
 
-            if (G_is_mapset_in_search_path(mapset))
+            if (G_is_mapset_in_search_path(mapset)) {
+                G_message(_("Mapset <%s> already in the path"), mapset);
                 continue;
                 continue;
+            }
             
             
             if (G__mapset_permissions(mapset) < 0)
             if (G__mapset_permissions(mapset) < 0)
                 G_fatal_error(_("Mapset <%s> not found"), mapset);
                 G_fatal_error(_("Mapset <%s> not found"), mapset);