Index: openacs-4/packages/acs-tcl/tcl/apm-install-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/apm-install-procs.tcl,v diff -u -r1.108.2.5 -r1.108.2.6 --- openacs-4/packages/acs-tcl/tcl/apm-install-procs.tcl 16 Sep 2013 08:05:09 -0000 1.108.2.5 +++ openacs-4/packages/acs-tcl/tcl/apm-install-procs.tcl 27 Sep 2013 16:16:08 -0000 1.108.2.6 @@ -261,7 +261,7 @@ foreach spec_file $spec_files { if { [catch { array set package [apm_read_package_info_file $spec_file] - if { ([string equal $package(initial-install-p) "t"] || !$initial_install_p) && \ + if { ($package(initial-install-p) eq "t" || !$initial_install_p) && \ [apm_package_supports_rdbms_p -package_key $package(package.key)] } { lappend install_pend [pkg_info_new \ $package(package.key) \ @@ -277,7 +277,7 @@ # either we're already installing it, or it can't be installed set counter 0 foreach pkg_info $pkg_info_all { - if { [string equal [pkg_info_key $pkg_info] $package(package.key)] } { + if { [pkg_info_key $pkg_info] eq $package(package.key) } { set pkg_info_all [lreplace $pkg_info_all $counter $counter] break } @@ -316,8 +316,8 @@ set satisfied_p 0 # Check to see if we've recorded it already set errmsg "Requires [lindex $req 0] of version >= [lindex $req 1]." - if { ![info exists install_error([pkg_info_key $pkg_info])] || \ - [lsearch -exact $install_error([pkg_info_key $pkg_info]) $errmsg] == -1} { + if { ![info exists install_error([pkg_info_key $pkg_info])] || + $errmsg ni $install_error([pkg_info_key $pkg_info])} { lappend install_error([pkg_info_key $pkg_info]) $errmsg } lappend new_install_pend $pkg_info @@ -356,7 +356,7 @@ set counter 0 foreach pkg_info_add $pkg_info_all { # Will this package do anything to change whether this requirement has been satisfied? - if { [string equal [pkg_info_key $pkg_info_add] [lindex $req 0]] && + if { [pkg_info_key $pkg_info_add] eq [lindex $req 0] && [apm_dependency_provided_p -dependency_list [pkg_info_provides $pkg_info_add] \ [lindex $req 0] [lindex $req 1]] == 1 } { @@ -906,15 +906,15 @@ global errorInfo ns_log Error "apm_package_install: Error installing $version(package-name) version $version(name): $errmsg\n$errorInfo" - apm_callback_and_log -severity Error $callback "
Failed to install $version(package-name), version $version(name). The following error was generated: + apm_callback_and_log -severity Error $callback [subst {
Failed to install $version(package-name), version $version(name). The following error was generated:
[ad_quotehtml $errmsg]
-NOTE: If the error comes from a sql script you may try to source it manually. When you are done with that you should revisit the APM and try again but remember to leave the manually souced sql scipts unchecked on the previous page. +NOTE: If the error comes from a sql script you may try to source it manually. When you are done with that you should revisit the APM and try again but remember to leave the manually souced sql scipts unchecked on the previous page.
-" +}] return 0 } @@ -1252,8 +1252,8 @@ set file_path [lindex $item 0] set file_type [lindex $item 1] ns_log Debug "apm_package_install_data_model: Now processing $file_path of type $file_type" - if {$file_type eq "data_model_create" || \ - $file_type eq "data_model_upgrade" } { + if {$file_type eq "data_model_create" || + $file_type eq "data_model_upgrade" } { if { !$ul_p } { apm_callback_and_log $callback "