Index: openacs-4/packages/acs-tcl/tcl/install-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/install-procs.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/acs-tcl/tcl/install-procs.tcl 31 Jan 2005 14:56:59 -0000 1.4
+++ openacs-4/packages/acs-tcl/tcl/install-procs.tcl 4 Feb 2005 11:08:03 -0000 1.5
@@ -103,9 +103,9 @@
if {[string is space $mount_point] ||
[string equal $mount_point "/"]} {
- set node_id [site_node::get_node_id -url "/"]
+ array set site_node [site_node::get -url "/"]
- if { ![empty_string_p $node(object_id)] } {
+ if { ![empty_string_p $site_node(object_id)] } {
ns_log Error "A package is already mounted at \"$mount_point\""
ns_write "
mount: A package is already mounted at \"$mount_point\", ignoring mount command."
set node_id ""
@@ -171,6 +171,73 @@
return $out
}
+ad_proc -public install::xml::action::mount-existing { node } {
+ Mounts an existing package on a specified node.
+
+
<mount-existing package-id="package-id mount-point="url" />
+} { + set package_id [apm_attribute_value -default "" $node package-id] + set package_key [apm_attribute_value -default "" $node package-key] + set mount_point [apm_attribute_value -default "" $node mount-point] + + set out [list] + + if {[string is space $mount_point] || + [string equal $mount_point "/"]} { + array set site_node [site_node::get -url "/"] + + if { ![empty_string_p $site_node(object_id)] } { + ns_log Error "A package is already mounted at \"$mount_point\"" + ns_write "