Opened 11 years ago

Closed 11 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 11 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 11 years ago by martinl

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()

Changed 11 years ago by martinl

Attachment: g-mapsets.diff added

comment:2 Changed 11 years ago by martinl

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

comment:3 in reply to:  2 Changed 11 years ago by martinl

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.