[GRASS-SVN] r30725 - grass/trunk/general/g.mapset
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Mar 25 05:56:18 EDT 2008
Author: martinl
Date: 2008-03-25 05:56:18 -0400 (Tue, 25 Mar 2008)
New Revision: 30725
Modified:
grass/trunk/general/g.mapset/main.c
Log:
g.mapset: set LOCATION_NAME and GISDBASE for -l flag (do not ignore location= and gisdbase=)
Modified: grass/trunk/general/g.mapset/main.c
===================================================================
--- grass/trunk/general/g.mapset/main.c 2008-03-25 09:55:07 UTC (rev 30724)
+++ grass/trunk/general/g.mapset/main.c 2008-03-25 09:56:18 UTC (rev 30725)
@@ -106,10 +106,14 @@
if (f_list->answer) {
char **ms;
int nmapsets;
+
+ G__setenv("LOCATION_NAME", location_new);
+ G__setenv("GISDBASE", gisdbase_new);
+
ms = G_available_mapsets();
for (nmapsets = 0; ms[nmapsets]; nmapsets++) {
- if (G__mapset_permissions2 (gisdbase_new, location_new, ms[nmapsets]) > 0) {
+ if (G__mapset_permissions(ms[nmapsets]) > 0) {
fprintf(stdout, "%s ", ms[nmapsets]);
}
}
More information about the grass-commit
mailing list