[GRASS-dev] [GRASS GIS] #379: g.mapsets: unwanted mapset duplication with add= parameter

#379: g.mapsets: unwanted mapset duplication with add= parameter
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
The following undesired duplication effect happens:

{{{
GRASS 6.4.svn (slovakiaUTM24):~ > g.mapsets -p
PERMANENT modisLST005filt modisLST005filt2

GRASS 6.4.svn (slovakiaUTM24):~ > g.mapsets add=modisLST005filt2

GRASS 6.4.svn (slovakiaUTM24):~ > g.mapsets -p
modisLST005filt2 PERMANENT modisLST005filt modisLST005filt2

GRASS 6.4.svn (slovakiaUTM24):~ > g.mapsets add=modisLST005filt2

GRASS 6.4.svn (slovakiaUTM24):~ > g.mapsets -p
PERMANENT modisLST005filt modisLST005filt2
}}}

A fix would be appreciated.

Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/379&gt;
GRASS GIS <http://grass.osgeo.org>

#379: g.mapsets: unwanted mapset duplication with add= parameter
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martinl):

  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

Comment:

The attached path should fix the bug. Any objections to introduce new
function to gislib?

{{{
G_is_mapset_in_search_path()
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/379#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#379: g.mapsets: unwanted mapset duplication with add= parameter
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by martinl):

Patch applied in trunk (r35449). Any objections to backport to devbr6 and
relbr64?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/379#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#379: g.mapsets: unwanted mapset duplication with add= parameter
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

Comment:

Replying to [comment:2 martinl]:
> Patch applied in trunk (r35449). Any objections to backport to devbr6
and relbr64?

Done in r35539 and r35540. Ticket closed, any testing welcomed.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/379#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>