Ticket #379 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

g.mapsets: unwanted mapset duplication with add= parameter

Reported by: neteler Owned by: martinl
Priority: major Milestone: 6.4.0
Component: Default Version: svn-develbranch6
Keywords: Cc: grass-dev@…
Platform: Unspecified CPU: Unspecified

Description

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

Attachments

g-mapsets.diff Download (1.6 KB) - added by martinl 3 years ago.

Change History

  Changed 3 years ago by martinl

  • cc grass-dev@… added
  • owner changed from grass-dev@… to martinl
  • status changed from new to assigned

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

G_is_mapset_in_search_path()

Changed 3 years ago by martinl

follow-up: ↓ 3   Changed 3 years ago by martinl

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

in reply to: ↑ 2   Changed 3 years ago by martinl

  • status changed from assigned to closed
  • resolution set to fixed

Replying to martinl:

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

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

Note: See TracTickets for help on using tickets.