[GRASS-dev] [bug #5118] (grass) v.db.droptable: an 'ERROR' is always issued though the command completes OK

Markus Neteler neteler at itc.it
Wed May 9 16:11:55 EDT 2007


On Wed, May 09, 2007 at 09:50:32PM +0200, Maciek Sieczka via RT wrote:
> mneteler wrote (Wed, May 9 2007 21:00:21):
> 
> > Is this ok or still an issue?
> 
> Still an issue. Hamish fixed v.db.droptable to issue additional message "(No
> database links remaining)", but the "ERROR:" line is still printed, which is
> wrong (even if it cannot be fixed).

I start to understand what you mean :)

v.db.droptable -f mmmm
Removing following table name connected to selected layer: mmmm
Removing table <mmmm> linked to layer <1> of vector map <mmmm>
Dropping table <mmmm>...
Current attribute table link(s):
ERROR: Database connection for map <mmmm> is not defined in DB file
(No database links remaining)

 
> Moreover, v.db.droptable is still an *interactive* module.

Fixed in CVS. Now it does:

v.db.droptable mmmm
Removing following table name connected to selected layer: mmmm
Removing table <mmmm> linked to layer <1> of vector map <mmmm>
You must use the force flag to actually remove the the table. Exiting.

I think that the "Removing.." message need some fine tuning (maybe
conditionalized) to be less confusing.

Markus




More information about the grass-dev mailing list