Index: openacs-4/packages/acs-bootstrap-installer/installer.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-bootstrap-installer/installer.tcl,v diff -u -r1.25 -r1.26 --- openacs-4/packages/acs-bootstrap-installer/installer.tcl 27 Oct 2014 16:39:04 -0000 1.25 +++ openacs-4/packages/acs-bootstrap-installer/installer.tcl 7 Aug 2017 23:47:46 -0000 1.26 @@ -25,7 +25,7 @@ set type_attribute [ad_decode $type "" "" "type=\"$type\""] if { $value ne "" } { - append extra_attributes " value=\"[ad_quotehtml $value]\"" + append extra_attributes " value=\"[ns_quotehtml $value]\"" } set input_widget "" @@ -298,9 +298,8 @@ } error] } { # In case of an error, don't forget to unlock the mutex. ns_mutex unlock [nsv_get acs_installer mutex] - global errorInfo install_return 500 "Error" "The following error occurred in an installation script:\n\ -
[ns_quotehtml $errorInfo]
\n" +
[ns_quotehtml $::errorInfo]
\n" } if {[array size errors] > 0} { install_return 500 "Error" [install_load_errors_formatted errors] @@ -320,6 +319,17 @@ } +proc install_back_button_widget {} { + return [subst {Please try again. + }] +} + proc install_redefine_ad_conn {} { # Peter Marklund @@ -341,12 +351,7 @@ Returns 1 if the ACS is running under Windows. Note, this procedure is a best guess, not sure of a better way of determining: } { - set thisplatform [ns_info platform] - if {$thisplatform eq "win32"} { - return 1 - } else { - return 0 - } + return [expr {[ns_info platform] in {win32 win64}}] } ad_proc -private install_load_errors_formatted {errorVarName} { @@ -359,10 +364,10 @@ set result "" if {[array size errors] > 0} { append result "
\n"
-        foreach {package errorInfos} [array get errors] {
+        foreach {package error_infos} [array get errors] {
             append result "

Error in Package $package:

\n" - foreach {fileName backTrace} $errorInfos { - append result "Error in File $fileName\n\n[ad_quotehtml $backTrace]\n\n\n" + foreach {fileName backTrace} $error_infos { + append result "Error in File $fileName\n\n[ns_quotehtml $backTrace]\n\n\n" } } append result "
\n" @@ -409,6 +414,7 @@ Done installing the OpenACS kernel data model.

" + ns_write "\n\n" # Some APM procedures use util_memoize, so initialize the cache # before starting APM install @@ -430,7 +436,8 @@ # Preload all the .info files so the next page is snappy. apm_dependency_check -initial_install [apm_scan_packages -new [file join $::acs::rootdir packages]] - ns_write "Done loading package .info files

" + ns_write "Done loading package .info files

" + ns_write "\n\n" } ad_proc -private install_do_packages_install {} { @@ -446,6 +453,8 @@ } -default 0] if {$kernel_id > 0} { proc ad_acs_kernel_id {} "return $kernel_id" + ns_log notice "installer: setting ::acs::kernel_id to $kernel_id" + set ::acs::kernel_id $kernel_id } return $kernel_id } else { @@ -481,12 +490,20 @@ ns_write "

At least one core package has an unsatisifed dependency.\ No packages have been installed missing: [lindex $dependency_results 2]. \ Here's what the APM has computed:" - + ns_write "\n