Opened 16 years ago

Closed 16 years ago

#379 closed defect (fixed)

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@…
CPU: Unspecified Platform: 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 (1)

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

Download all attachments as: .zip

Change History (4)

comment:1 by martinl, 16 years ago

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl
Status: newassigned

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

G_is_mapset_in_search_path()

by martinl, 16 years ago

Attachment: g-mapsets.diff added

comment:2 by martinl, 16 years ago

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

in reply to:  2 comment:3 by martinl, 16 years ago

Resolution: fixed
Status: assignedclosed

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.