Index: openacs-4/packages/acs-admin/www/apm/parameter-add-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/parameter-add-2.tcl,v diff -u -N -r1.14.2.2 -r1.14.2.3 --- openacs-4/packages/acs-admin/www/apm/parameter-add-2.tcl 30 Jul 2024 17:39:48 -0000 1.14.2.2 +++ openacs-4/packages/acs-admin/www/apm/parameter-add-2.tcl 1 Aug 2024 12:04:36 -0000 1.14.2.3 @@ -17,9 +17,10 @@ {min_n_values:integer 1} {max_n_values:integer 1} {return_url:localurl ""} + {update_info_file:boolean true} } -validate { datatype_type_ck { - if {$datatype ne "number" && $datatype ne "string" && $datatype ne "text"} { + if {$datatype ni {number string text}} { ad_complain } } @@ -41,7 +42,9 @@ db_transaction { apm_parameter_register -parameter_id $parameter_id -scope $scope $parameter_name $description $package_key \ $default_value $datatype $section_name $min_n_values $max_n_values - apm_package_install_spec $version_id + if {$update_info_file} { + apm_package_install_spec $version_id + } } on_error { if {![db_string apm_parameter_register_doubleclick_p { select 1 from apm_parameters where parameter_id = :parameter_id Index: openacs-4/packages/acs-admin/www/apm/parameter-delete.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/parameter-delete.tcl,v diff -u -N -r1.9.2.1 -r1.9.2.2 --- openacs-4/packages/acs-admin/www/apm/parameter-delete.tcl 30 Jul 2024 17:39:48 -0000 1.9.2.1 +++ openacs-4/packages/acs-admin/www/apm/parameter-delete.tcl 1 Aug 2024 12:04:36 -0000 1.9.2.2 @@ -7,6 +7,7 @@ parameter_id:naturalnum,notnull section_name:notnull version_id:naturalnum,notnull + {update_info_file:boolean 1} } db_1row apm_package_by_version_id { Index: openacs-4/packages/acs-admin/www/apm/parameter-edit-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/parameter-edit-2.tcl,v diff -u -N -r1.12.2.1 -r1.12.2.2 --- openacs-4/packages/acs-admin/www/apm/parameter-edit-2.tcl 14 Feb 2019 16:15:00 -0000 1.12.2.1 +++ openacs-4/packages/acs-admin/www/apm/parameter-edit-2.tcl 1 Aug 2024 12:04:36 -0000 1.12.2.2 @@ -15,6 +15,7 @@ {default_value ""} {min_n_values:integer 1} {max_n_values:integer 1} + {update_info_file:boolean,notnull true} } -validate { datatype_type_ck { if {$datatype ne "number" && $datatype ne "string" && $datatype ne "text"} { @@ -31,7 +32,10 @@ apm_parameter_update $parameter_id $package_key $parameter_name $description \ $default_value $datatype $section_name $min_n_values $max_n_values - apm_package_install_spec $version_id + + if {$update_info_file} { + apm_package_install_spec $version_id + } } on_error { ad_return_error "Database Error" "The parameter could not be updated. The database returned the following error:
Index: openacs-4/packages/acs-admin/www/apm/version-dependency-add-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-dependency-add-2.tcl,v diff -u -N -r1.18 -r1.18.2.1 --- openacs-4/packages/acs-admin/www/apm/version-dependency-add-2.tcl 8 May 2018 22:37:18 -0000 1.18 +++ openacs-4/packages/acs-admin/www/apm/version-dependency-add-2.tcl 1 Aug 2024 12:04:36 -0000 1.18.2.1 @@ -9,12 +9,15 @@ dependency_type service:notnull our_package_key:notnull + {update_info_file:boolean,notnull true} } set service [split $service ";"] lassign $service package_key version_name -apm_package_install_spec $version_id +if {$update_info_file} { + apm_package_install_spec $version_id +} db_transaction { switch -- $dependency_type { Index: openacs-4/packages/acs-admin/www/apm/version-edit-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-edit-2.tcl,v diff -u -N -r1.16.2.3 -r1.16.2.4 --- openacs-4/packages/acs-admin/www/apm/version-edit-2.tcl 6 Oct 2023 12:09:19 -0000 1.16.2.3 +++ openacs-4/packages/acs-admin/www/apm/version-edit-2.tcl 1 Aug 2024 12:04:36 -0000 1.16.2.4 @@ -11,13 +11,14 @@ summary description:html {description_format ""} - { owner_name:multiple} - { owner_uri:multiple} + {owner_name:multiple} + {owner_uri:multiple} vendor vendor_uri {auto_mount ""} {release_date ""} - { upgrade_p:boolean,notnull 0 } + {upgrade_p:boolean,notnull 0} + {update_info_file:boolean,notnull true} } # Validate dynamic package version attributes @@ -72,7 +73,10 @@ set version_id [apm_version_update -array dynamic_attributes $version_id $version_name $version_uri \ $summary $description $description_format $vendor $vendor_uri $auto_mount $release_date] apm_package_install_owners [apm_package_install_owners_prepare $owner_name $owner_uri] $version_id - apm_package_install_spec $version_id + + if {$update_info_file} { + apm_package_install_spec $version_id + } if {$upgrade_p} { apm_version_upgrade $version_id Index: openacs-4/packages/acs-admin/www/apm/parameter-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/parameter-add.tcl,v diff -u -N -r1.12.2.2 -r1.12.2.3 --- openacs-4/packages/acs-admin/www/apm/parameter-add.tcl 30 Jul 2024 17:39:48 -0000 1.12.2.2 +++ openacs-4/packages/acs-admin/www/apm/parameter-add.tcl 1 Aug 2024 12:10:32 -0000 1.12.2.3 @@ -11,6 +11,7 @@ {default_value ""} {scope ""} {return_url ""} + {update_info_file:boolean true} } set user_id [ad_conn user_id] @@ -45,7 +46,7 @@