From 54ce9d875ee17fa27c826ed085f9f5357dd8e8cc Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 17 Jul 2009 00:17:10 -0400 Subject: still not fully functional, but I was able to succesfully commit the current directory --- src/rvs-core/lib/rvsdb.sh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/rvs-core/lib/rvsdb.sh b/src/rvs-core/lib/rvsdb.sh index a02304b..01f9e0d 100644 --- a/src/rvs-core/lib/rvsdb.sh +++ b/src/rvs-core/lib/rvsdb.sh @@ -60,19 +60,20 @@ logwrite() { var="$2" val="$3" - #lines=`_find "$log" '1' "$var"` - #if [ "$lines" = '' ]; then - if [ "`lograw "$log" | grep "^$var:"`" == '' ]; then - # no exiswhereting occurances - echo "$var:$val" >> "$log" - else - # found others - # escape slashes - var=`echo "$var" | sed 's:/:\\\\/:g'` - val=`echo "$val" | sed 's:/:\\\\/:g'` - sed -i "s/^$var:.*$/$var:$val/" "$log" - #lograw "$log" | ?????? - fi +# #lines=`_find "$log" '1' "$var"` +# #if [ "$lines" = '' ]; then +# if [ "`lograw "$log" | grep "^$var:"`" == '' ]; then +# # no exiswhereting occurances +# echo "$var:$val" >> "$log" +# else +# # found others +# # escape slashes +# var=`echo "$var" | sed 's:/:\\\\/:g'` +# val=`echo "$val" | sed 's:/:\\\\/:g'` +# sed -i "s/^$var:.*$/$var:$val/" "$log" +# #lograw "$log" | ?????? +# fi + echo "$var:$val" >> $log } # logfind LOG VAL -- cgit v1.2.3