Index: openacs-4/packages/acs-admin/www/apm/packages-install-4.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/packages-install-4.tcl,v diff -u -r1.19 -r1.20 --- openacs-4/packages/acs-admin/www/apm/packages-install-4.tcl 19 Jun 2015 19:51:16 -0000 1.19 +++ openacs-4/packages/acs-admin/www/apm/packages-install-4.tcl 7 Aug 2017 23:47:45 -0000 1.20 @@ -17,19 +17,18 @@ set title "Package Installation" set context [list [list "/acs-admin/apm/" "Package Manager"] $title] -set template [parameter::get -package_id [ad_conn subsite_id] \ - -parameter StreamingHead \ - -default /packages/openacs-default-theme/lib/plain-streaming-head] -ad_return_top_of_page [ad_parse_template -params [list context title] $template] +ad_return_top_of_page [ad_parse_template \ + -params [list context title] \ + [template::streaming_template]] -ns_write { +ns_write [subst {
" + file is invalid:[ad_quotehtml $errmsg]
" continue } - if {[apm_package_version_installed_p $version(package.key) $version(name)] } { - ns_log notice "===== ALREADY-installed $version(package.key)" + set package_key $version(package.key) + + if {[apm_package_version_installed_p $package_key $version(name)] } { + #ns_log notice "===== ALREADY installed $package_key" # Already installed. continue } - set package_key $version(package.key) set version_files $version(files) set data_model_files [list] @@ -87,7 +87,7 @@ set enable_p 1 if {[catch { - ns_log notice "===== INSTALL $version(package.key)" + ns_log notice "===== INSTALL $package_key" set version_id [apm_package_install \ -enable=$enable_p \ -package_path $package_path \ @@ -96,13 +96,8 @@ -data_model_files $data_model_files \ -mount_path $selected_mount_path \ $spec_file] + ns_log notice "===== INSTALL $package_key DONE" - if {[file exists $::acs::rootdir/packages/$version(package.key)/install.xml]} { - ns_log notice "===== RUN /packages/$version(package.key)/install.xml" - apm::process_install_xml /packages/$version(package.key)/install.xml "" - } - ns_log notice "===== INSTALL $version(package.key) DONE" - } errorMsg]} { ns_write "Error: $errorMsg\n" ns_write [ns_quotehtml $::errorInfo] @@ -113,10 +108,11 @@ # Installation of the package failed and we shouldn't continue with installation # as there might be packages depending on the failed package. Ideally we should # probably check for such dependencies and continue if there are none. - ns_write { + ns_write [subst {[ns_quotehtml $errmsg]
Done installing packages. -
You should restart the server now to make installed and upgraded packages available. - Click here to restart the server now.
+You should restart the server now to make installed and upgraded packages available.
+Click here to restart the server now.
} } -ns_write { - -} +ns_write [subst { + +}] + +# Local variables: +# mode: tcl +# tcl-indent-level: 4 +# indent-tabs-mode: nil +# End: