On Sat, Oct 06, 2007 at 07:05:00AM +0200, grass@intevation.de wrote:
Author: hamish
Update of /grassrepository/grass6/lib/init
In directory doto:/tmp/cvs-serv6411
Modified Files:
init.sh
Log Message:
add test so don't overwrite VAR file without testing. I just commented the whole
thing out though after fixing it, as the VAR and $MAPSET/dbf/ should be
created on demand. To a raster-only or postgres-only user they are just
file pollution. code bug #502
On Sat, October 6, 2007 09:53, Markus Neteler wrote:
On Sat, Oct 06, 2007 at 07:05:00AM +0200, grass@intevation.de wrote:
Author: hamish
Update of /grassrepository/grass6/lib/init
In directory doto:/tmp/cvs-serv6411
Modified Files:
init.sh
Log Message:
add test so don't overwrite VAR file without testing. I just commented
the whole
thing out though after fixing it, as the VAR and $MAPSET/dbf/ should be
created on demand. To a raster-only or postgres-only user they are just
file pollution. code bug #502
ie the missing check for the existence of VAR before overwriting the file.
H
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545469
ie the missing check for the existence of VAR before overwriting the file.
Would like to check that but...:
Python Exception Occurred
Traceback (most recent call last):
File "/home/www/viewcvs/lib/viewcvs.py", line 2630, in run_cgi
main()
File "/home/www/viewcvs/lib/viewcvs.py", line 2608, in main
view_diff(request, full_name[:-5])
File "/home/www/viewcvs/lib/viewcvs.py", line 2335, in view_diff
if revcmp(rev1, rev2) > 0:
File "/home/www/viewcvs/lib/viewcvs.py", line 1098, in revcmp
rev2 = map(int, string.split(rev2, '.'))
ValueError: invalid literal for int(): 119)
Is meant to create:
grassdata/spearfish60/user11/VAR
grassdata/spearfish60/user11/WIND
grassdata/spearfish60/user11/dbf/
(current CVS makes the new mapset but not the VAR and dbf/)
?
I would think we should throw an error if the mapset doesn't exist
(typo), and some '-n' flag is needed to create a new mapset from the
command line.
?
And don't create the VAR and dbf/ until needed. (why do those need to
exist before any vector maps with tables are created?)
?
Is meant to create:
grassdata/spearfish60/user11/VAR
grassdata/spearfish60/user11/WIND
grassdata/spearfish60/user11/dbf/
(current CVS makes the new mapset but not the VAR and dbf/)
?
Yes, because only then it becomes a valid mapset without subsequent
errors.
HamishB wrote:
I would think we should throw an error if the mapset doesn't exist
(typo), and some '-n' flag is needed to create a new mapset from the
command line.
?
OK, sounds reasonable to me (less surprises in the script behaviour).
HamishB wrote:
And don't create the VAR and dbf/ until needed. (why do those need to
exist before any vector maps with tables are created?)
?
Because any db./v. command will fail if those aren't present. DBF is the
default (still). Costs only a very few bytes.
Alternatively, fix all commands to auto-create when VAR and dbf/ are needed
but I suspect that this would be lots of work. Better do it in one place
right
at the beginning (then we can also easily switch to SQLite as default DB
driver
in future.