Index: openacs-4/packages/acs-admin/www/apm/packages-install.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/packages-install.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-admin/www/apm/packages-install.tcl 19 Aug 2001 21:26:05 -0000 1.2 +++ openacs-4/packages/acs-admin/www/apm/packages-install.tcl 28 Aug 2001 23:51:53 -0000 1.3 @@ -6,6 +6,7 @@ @cvs-id $Id$ } { + {checked_by_default_p:boolean 1} {install_path [apm_workspace_install_dir]} } @@ -16,31 +17,34 @@ " ### Selection Phase -set spec_files [apm_scan_packages $install_path] +set all_spec_files [apm_scan_packages $install_path] # Nothing in the install dir, maybe they just copied the files in under packages. -if { [empty_string_p $spec_files] } { - set install_path "[acs_root_dir]/packages" - set all_spec_files [apm_scan_packages $install_path] +if { [empty_string_p $all_spec_files] } { + set actual_install_path "[acs_root_dir]/packages" + set all_spec_files [apm_scan_packages $actual_install_path] # We don't need to copy any files, because they are already there. ad_set_client_property apm copy_files_p 0 - # Determine which spec files are new installs; install all of the new items. - foreach spec_file $all_spec_files { - array set version [apm_read_package_info_file $spec_file] - set version_name $version(name) - set package_name $version(package-name) - set package_key $version(package.key) - if { [db_package_supports_rdbms_p $version(database_support)] } { - if { [apm_package_registered_p $package_key] } { - if { [apm_higher_version_installed_p $package_key $version_name] } { - lappend spec_files $spec_file - } - } else { +} else { + ad_set_client_property apm copy_files_p 1 + set actual_install_path $install_path +} + +# Determine which spec files are new installs; install all of the new items. +set spec_files [list] +foreach spec_file $all_spec_files { + array set version [apm_read_package_info_file $spec_file] + set version_name $version(name) + set package_name $version(package-name) + set package_key $version(package.key) + if { [db_package_supports_rdbms_p $version(database_support)] } { + if { [apm_package_registered_p $package_key] } { + if { [apm_higher_version_installed_p $package_key $version_name] } { lappend spec_files $spec_file } + } else { + lappend spec_files $spec_file } } -} else { - ad_set_client_property apm copy_files_p 1 } ns_log Debug $spec_files @@ -71,16 +75,24 @@ If you think you might want to use a package later (but not right away), - install it but don't enable it. - -