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.86 -r1.87 --- openacs-4/packages/acs-tcl/tcl/apm-install-procs.tcl 4 Jun 2006 00:45:47 -0000 1.86 +++ openacs-4/packages/acs-tcl/tcl/apm-install-procs.tcl 10 Jan 2007 21:22:12 -0000 1.87 @@ -23,7 +23,7 @@ @return A list of unregistered .info files that can be parsed for further information. } { - if { [empty_string_p $path] } { + if { $path eq "" } { set path "[apm_workspace_install_dir]" } @@ -99,10 +99,10 @@ return 1 } - if { ![empty_string_p $dependency_list] } { + if { $dependency_list ne "" } { # They provided a list of provisions. foreach prov $dependency_list { - if { [string equal $dependency_uri [lindex $prov 0]] } { + if {$dependency_uri eq [lindex $prov 0]} { set provided_version [lindex $prov 1] set provided_p [db_string version_greater_p {}] @@ -658,7 +658,7 @@ # Determine if we are upgrading or installing. set upgrade_from_version_name [apm_package_upgrade_from $package_key $version(name)] - set upgrade_p [expr ![empty_string_p $upgrade_from_version_name]] + set upgrade_p [expr {$upgrade_from_version_name ne ""}] if { [string match "[apm_workspace_install_dir]*" $package_path] } { # Package is being installed from the apm_workspace dir (expanded from .apm file) @@ -713,7 +713,7 @@ # to invoke any Tcl callbacks after mounting and instantiation. Note that this reloading # is only done in the Tcl interpreter of this particular request. # Note that acs-tcl is a special case as its procs are always sourced on startup from boostrap.tcl - if { ![string equal $package_key "acs-tcl"] } { + if { $package_key ne "acs-tcl" } { apm_load_libraries -procs -force_reload -packages $package_key apm_load_queries -packages $package_key } @@ -819,7 +819,7 @@ apm_invoke_callback_proc -version_id $version_id -type after-install set priority_mount_path [ad_decode $version(auto-mount) "" $mount_path $version(auto-mount)] - if { ![empty_string_p $priority_mount_path] } { + if { $priority_mount_path ne "" } { # This is a package that should be auto mounted set parent_id [site_node::get_node_id -url "/"] @@ -831,7 +831,7 @@ } error] } { # There is already a node with that path, check if there is a package mounted there array set node [site_node::get -url "/${priority_mount_path}"] - if { [empty_string_p $node(object_id)] } { + if { $node(object_id) eq "" } { # There is no package mounted there so go ahead and mount the new package set node_id $node(node_id) } else { @@ -840,7 +840,7 @@ } } - if { ![empty_string_p $node_id] } { + if { $node_id ne "" } { site_node::instantiate_and_mount \ -node_id $node_id \ @@ -857,7 +857,7 @@ apm_callback_and_log $callback "

$error_text

" } - } elseif { [string equal $package_type "apm_service"] && [string equal $singleton_p "t"] } { + } elseif { $package_type eq "apm_service" && $singleton_p eq "t" } { # This is a singleton package. Instantiate it automatically, but don't mount. # Using empty context_id @@ -889,10 +889,10 @@ } { upvar $array local_array - if { [empty_string_p $version_id] } { + if { $version_id eq "" } { set version_id [db_null] } - if { [empty_string_p $release_date] } { + if { $release_date eq "" } { set release_date [db_null] } @@ -1012,7 +1012,7 @@ } # Source SQL drop scripts - if {![empty_string_p $sql_drop_scripts]} { + if {$sql_drop_scripts ne ""} { apm_callback_and_log $callback "Now executing drop scripts.