Index: openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-install-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-install-procs.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-install-procs.tcl 27 Oct 2014 16:42:00 -0000 1.6 +++ openacs-4/packages/tsearch2-driver/tcl/tsearch2-driver-install-procs.tcl 7 Aug 2017 23:48:29 -0000 1.7 @@ -28,15 +28,15 @@ ns_log Notice " ********** STARTING BEFORE-INSTALL CALLBACK ****************" # check if tsearch2 is installed - # in psql we do this by checking the presense of a data type tsvector + # in psql we do this by checking the presence of a data type tsvector # select typname from pg_type where typename='tsvector'; - if { [db_0or1row "tsearch_compile_check" "select distinct(typname) from pg_type where typname='tsvector'"] } { - - # if tsearch is installed - ns_log Notice "******* Tsearch2 is compiled and installed. ***********" - # continue with installation - + if { [db_0or1row tsearch_compile_check { + select distinct(typname) from pg_type where typname='tsvector' + }] } { + # if tsearch is installed + ns_log Notice "******* Tsearch2 is compiled and installed. ***********" + # continue with installation } else { # tsearch not installed