Index: openacs-4/packages/acs-admin/acs-admin.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/acs-admin.info,v
diff -u -r1.16.2.3 -r1.16.2.4
--- openacs-4/packages/acs-admin/acs-admin.info 9 Dec 2002 14:29:22 -0000 1.16.2.3
+++ openacs-4/packages/acs-admin/acs-admin.info 5 Mar 2003 14:42:59 -0000 1.16.2.4
@@ -7,7 +7,7 @@
tt
-
+ oraclepostgresql
@@ -18,7 +18,7 @@
OpenACSA UI for administering the OpenACS system.
-
+
Fisheye: Tag 1.4.2.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/file-add-2.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/file-add-2.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.4.2.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/file-add.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/file-add.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.2.2.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/file-remove.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/file-remove.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/acs-admin/www/apm/file-watch.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/file-watch.tcl,v
diff -u -r1.5 -r1.5.2.1
--- openacs-4/packages/acs-admin/www/apm/file-watch.tcl 18 Sep 2002 14:54:45 -0000 1.5
+++ openacs-4/packages/acs-admin/www/apm/file-watch.tcl 5 Mar 2003 14:43:12 -0000 1.5.2.1
@@ -1,49 +1,30 @@
ad_page_contract {
Schedules a file to be watched.
-
- @param file_id The id of the file to watch.
@author Jon Salz [jsalz@arsdigita.com]
@creation-date 17 April 2000
@cvs-id $Id$
} {
- file_id:integer
-} -validate {
- valid_version_id {
- set version_id [apm_version_from_file $file_id]
- if {$version_id == 0} {
- ad_complain
- }
- }
-} -errors {
- valid_version_id {The file you have requested is not registerd.}
-}
+ version_id:integer
+ paths:multiple
+}
+apm_version_info $version_id
-db_1row apm_get_file_to_watch {
- select t.package_key, t.pretty_name,
- v.version_name, v.package_key, v.installed_p,
- f.path, f.version_id
- from apm_package_types t, apm_package_versions v, apm_package_files f
- where f.file_id = :file_id
- and f.version_id = v.version_id
- and v.package_key = t.package_key
-}
+set count 0
+foreach path $paths {
+ incr count
-# Why did we need all that information? -KS
+ apm_file_watch "packages/$package_key/$path"
-doc_body_append "[apm_header -form "method=post action=\"file-add-2\"" [list "version-view?version_id=$version_id" "$pretty_name $version_name"] [list "version-files?version_id=$version_id" "Files"] "Watch file"]
-
-"
-
-db_1row apm_get_path_from_file_id {
- select path from apm_package_files where file_id = :file_id
+ lappend path_list $path
}
-apm_file_watch "packages/$package_key/$path"
+doc_body_append "[apm_header -form "method=post action=\"file-add-2\"" [list "version-view?version_id=$version_id" "$pretty_name $version_name"] [list "version-files?version_id=$version_id" "Files"] "Watch file"]"
-doc_body_append "Marking the following file to be watched:
$path
+doc_body_append "Marking the following files to be watched:
[join $path_list "
"]
+
Return to the list of files for $pretty_name $version_name Return to the Package Manager
Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/file-watch.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/acs-admin/www/apm/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/index.tcl,v
diff -u -r1.6 -r1.6.2.1
--- openacs-4/packages/acs-admin/www/apm/index.tcl 29 Aug 2002 09:52:39 -0000 1.6
+++ openacs-4/packages/acs-admin/www/apm/index.tcl 5 Mar 2003 14:43:12 -0000 1.6.2.1
@@ -73,13 +73,19 @@
{ maintained "Maintained" "" {
Write new specification files for all installed, locally generated packages
Index: openacs-4/packages/acs-admin/www/apm/package-add-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/package-add-2.tcl,v
diff -u -r1.3 -r1.3.2.1
--- openacs-4/packages/acs-admin/www/apm/package-add-2.tcl 10 Sep 2002 22:21:59 -0000 1.3
+++ openacs-4/packages/acs-admin/www/apm/package-add-2.tcl 5 Mar 2003 14:43:12 -0000 1.3.2.1
@@ -11,6 +11,7 @@
{ package_type "apm_application"}
{ initial_install_p "f" }
{ singleton_p "f" }
+ { auto_mount "" }
package_uri
version_name
version_uri
@@ -89,7 +90,7 @@
summary {Please summarize your package so that users can determine what it is for.}
description {Please provide a description of your package so that users can consider using it.}
descrption_format {Please indicate if your package is HTML or text.}
- package_key_format {The package key should contain only letters, numbers, and hyphens and it must be lowercase.}
+ package_key_format {The package key should contain only letters, numbers, and hyphens (dashes) and it must be lowercase.}
package_id {You must provide an integer key for your package.}
version_id {You must provide an integer key for your package version.}
}
@@ -101,7 +102,7 @@
# Insert the version
set version_id [apm_package_install_version -callback apm_dummy_callback -version_id \
$version_id $package_key $version_name $version_uri $summary $description \
- $description_format $vendor $vendor_uri]
+ $description_format $vendor $vendor_uri $auto_mount]
apm_version_enable -callback apm_dummy_callback $version_id
apm_package_install_owners -callback apm_dummy_callback \
[apm_package_install_owners_prepare $owner_name $owner_uri] $version_id
Index: openacs-4/packages/acs-admin/www/apm/package-add.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/package-add.tcl,v
diff -u -r1.5 -r1.5.2.1
--- openacs-4/packages/acs-admin/www/apm/package-add.tcl 10 Sep 2002 22:21:59 -0000 1.5
+++ openacs-4/packages/acs-admin/www/apm/package-add.tcl 5 Mar 2003 14:43:12 -0000 1.5.2.1
@@ -107,7 +107,18 @@
such as the ACS Kernel.
+
Auto-mount URI
+
+
+
+
+
The URI (name) under the main site where the package will automatically be
+ mounted upon installation. This feature is typically only used by singleton packages.
+
+
+
+
Pick a canonical URL for your package. This should be a URL where the package can be downloaded.
Index: openacs-4/packages/acs-admin/www/apm/package-delete-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/package-delete-2.tcl,v
diff -u -r1.1.1.1.4.1 -r1.1.1.1.4.2
--- openacs-4/packages/acs-admin/www/apm/package-delete-2.tcl 22 Jan 2003 18:28:20 -0000 1.1.1.1.4.1
+++ openacs-4/packages/acs-admin/www/apm/package-delete-2.tcl 5 Mar 2003 14:43:12 -0000 1.1.1.1.4.2
@@ -25,16 +25,37 @@
doc_body_append [apm_header [list "version-view?version_id=$version_id" "$pretty_name $version_name"] "Delete"]
+# Unmount all instances of this package with the Tcl API that invokes before-unmount callbacks
+db_foreach all_package_instances {
+ select site_nodes.node_id
+ from apm_packages, site_nodes
+ where apm_packages.package_id = site_nodes.object_id
+ and apm_packages.package_key = :package_key
+} {
+ set url [site_node::get_url -node_id $node_id]
+ doc_body_append "Unmounting package instance at url $url "
+ site_node::unmount -node_id $node_id
+}
+
+# Delete the package instances with Tcl API that invokes before-uninstantiate callbacks
+db_foreach all_package_instances {
+ select package_id
+ from apm_packages
+ where package_key = :package_key
+} {
+ doc_body_append "Deleting package instance $package_id "
+ apm_package_instance_delete $package_id
+}
+
+# Invoke the before-uninstall Tcl callback before the sql drop scripts
+apm_invoke_callback_proc -version_id $version_id -type before-uninstall
+
if {![empty_string_p $sql_drop_scripts]} {
doc_body_append "Now executing drop scripts.
"
- db_foreach drop_file_query "
- select path from apm_package_files
- where file_id in ([join $sql_drop_scripts \",\"])
- and file_type='data_model_drop'
- " {
+ foreach path $sql_drop_scripts {
doc_body_append "
"
Index: openacs-4/packages/acs-admin/www/apm/package-delete.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/package-delete.tcl,v
diff -u -r1.3.4.1 -r1.3.4.2
--- openacs-4/packages/acs-admin/www/apm/package-delete.tcl 22 Jan 2003 18:28:20 -0000 1.3.4.1
+++ openacs-4/packages/acs-admin/www/apm/package-delete.tcl 5 Mar 2003 14:43:12 -0000 1.3.4.2
@@ -14,24 +14,17 @@
set db_type [db_type]
-db_foreach apm_package_drop_scripts {
- select file_id, path
- from apm_package_files
- where version_id = :version_id
- and file_type = 'data_model_drop'
- and (db_type is null or db_type = :db_type)
-} {
+set file_list ""
+foreach file [apm_get_package_files -package_key $package_key -file_types data_model_drop] {
append file_list "
-
-
$path
+
+
$file
"
-} if_no_rows {
- set file_list ""
-}
+}
if {![empty_string_p $file_list]} {
set file_list "
- Please check the drop scripts you want to run. Be aware that this will
+ We recommend sourcing all of the drop scripts for the package. Be aware that this will
erase all data associated with this package from the database.
$file_list
Index: openacs-4/packages/acs-admin/www/apm/packages-install-2.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/packages-install-2.tcl,v
diff -u -r1.5 -r1.5.2.1
--- openacs-4/packages/acs-admin/www/apm/packages-install-2.tcl 18 Sep 2002 11:54:42 -0000 1.5
+++ openacs-4/packages/acs-admin/www/apm/packages-install-2.tcl 5 Mar 2003 14:43:12 -0000 1.5.2.1
@@ -18,23 +18,27 @@
ad_set_client_property -clob t apm pkg_install_list ""
ad_set_client_property -clob t apm pkg_enable_list ""
-foreach install_key $install {
- foreach spec_file $spec_files {
- # Find the spec_file that has the install_key
- if { [catch {
- array set package [apm_read_package_info_file $spec_file]
- } errmsg] } {
- # Unable to parse specification file.
- # If we get here, its because someone hacked the archive the loading process
- # which checks the info file and displays an error.
- # process
- ns_log Error "$spec_file could not be parsed correctly. It is not being installed.
- The error: $errmsg"
- }
- if {![string compare $package(package.key) $install_key]} {
- lappend install_spec_files $spec_file
- }
+foreach spec_file $spec_files {
+ # Get package info, and find out if this is a package we should install
+ if { [catch {
+ array set package [apm_read_package_info_file $spec_file]
+ } errmsg] } {
+ # Unable to parse specification file.
+ # If we get here, its because someone hacked the archive the loading process
+ # which checks the info file and displays an error.
+ # process
+ ns_log Error "$spec_file could not be parsed correctly. It is not being installed.
+ The error: $errmsg"
}
+
+ # Save the package info, we may need it for dependency satisfaction later
+ lappend pkg_info_list [pkg_info_new $package(package.key) $spec_file \
+ $package(provides) $package(requires) ""]
+
+ if { [lsearch -exact $install $package(package.key)] != -1 } {
+ # This is a package which we should install
+ lappend install_spec_files $spec_file
+ }
}
if {![info exists install_spec_files]} {
@@ -44,9 +48,40 @@
}
### Dependency Check
-set dependency_results [apm_dependency_check $install_spec_files]
+set dependency_results [apm_dependency_check -pkg_info_all $pkg_info_list $install_spec_files]
-if { ([lindex $dependency_results 0] == 1) || ![string compare $force_p "t"]} {
+if { [lindex $dependency_results 0] == 1 && [llength [lindex $dependency_results 2]] > 0 } {
+
+ set extra_package_keys [lindex $dependency_results 2]
+
+ # Check was good after adding a couple more pacakges
+
+ doc_body_append "[apm_header "Package Installation"]
+
Additional Packages Automatically Added
+
+ Some of the packages you were trying to install required other packages to be installed first.
+ We've added these additional packages needed, and ask you to review the list of packages below.
+
+
+ [ad_footer]
+ "
+
+} elseif { ([lindex $dependency_results 0] == 1) || ![string compare $force_p "t"]} {
### Check passed! Initiate install.
# We use client properties to pass along this information as it is fairly large.
@@ -63,7 +98,7 @@
Some of the packages you are trying to install have unsatisfied dependencies. The packages
with unsatisfied dependencies have been deselected. If you wish to install packages that do
not pass dependencies, please click the \"force\" option below.
-
You should restart the server now to make installed and upgraded packages available.
[ad_footer]
"
}
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.12 -r1.12.2.1
--- openacs-4/packages/acs-admin/www/apm/packages-install.tcl 14 Aug 2002 18:51:13 -0000 1.12
+++ openacs-4/packages/acs-admin/www/apm/packages-install.tcl 5 Mar 2003 14:43:12 -0000 1.12.2.1
@@ -6,7 +6,7 @@
@cvs-id $Id$
} {
- {checked_by_default_p:boolean 1}
+ {checked_by_default_p:boolean 0}
{install_path [apm_workspace_install_dir]}
}
@@ -33,16 +33,20 @@
set already_installed_list [list]
set not_compatible_list [list]
+ns_log Notice "pm debug spec_files $all_spec_files"
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_supports_rdbms_p -package_key $package_key] } {
if { [apm_package_registered_p $package_key] } {
+ # This package is already on the system
if { [apm_higher_version_installed_p $package_key $version_name] } {
+ ns_log Notice "higher version installed of $package_key $version_name"
lappend spec_files $spec_file
} else {
+ ns_log Notice "need upgrade of package $package_key $version_name"
lappend already_installed_list "Package "$package_name" ($package_key) version $version_name or higher is already installed."
}
} else {
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 -r1.2 -r1.2.2.1
--- openacs-4/packages/acs-admin/www/apm/version-dependency-add-2.tcl 10 Sep 2002 22:21:59 -0000 1.2
+++ openacs-4/packages/acs-admin/www/apm/version-dependency-add-2.tcl 5 Mar 2003 14:43:12 -0000 1.2.2.1
@@ -22,7 +22,7 @@
}
default {
- ad_return complaint "Dependency Entry Error" "Depenendencies are either interfaces or requirements."
+ ad_return complaint "Dependency Entry Error" "Depenendencies are either provided or required."
}
}
apm_package_install_spec $version_id
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 -r1.3 -r1.3.2.1
--- openacs-4/packages/acs-admin/www/apm/version-edit-2.tcl 10 Sep 2002 22:21:59 -0000 1.3
+++ openacs-4/packages/acs-admin/www/apm/version-edit-2.tcl 5 Mar 2003 14:43:12 -0000 1.3.2.1
@@ -9,17 +9,18 @@
version_name
version_uri
summary
- description
+ description:html
{description_format ""}
{ owner_name:multiple}
{ owner_uri:multiple}
vendor
vendor_uri
+ {auto_mount ""}
{release_date ""}
{ upgrade_p 0 }
} -validate {
version_uri_unique -requires {version_uri} {
- if { [db_string apm_version_uri_unique_ck {
+ if { $upgrade_p && [db_string apm_version_uri_unique_ck {
select decode(count(*), 0, 0, 1) from apm_package_versions
where version_uri = :version_uri
} -default 0] } {
@@ -51,11 +52,20 @@
db_transaction {
set version_id [apm_version_update $version_id $version_name $version_uri \
- $summary $description $description_format $vendor $vendor_uri $release_date]
+ $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 {$upgrade_p} {
apm_version_upgrade $version_id
+
+ # The package now provides the new version of itself as interface
+ db_dml update_version_provides {update apm_package_dependencies
+ set service_version = :version_name
+ where version_id = :version_id
+ and service_uri = (select package_key
+ from apm_package_versions
+ where version_id = :version_id)
+ and dependency_type = 'provides'}
}
} on_error {
ad_return_error "Error" "
@@ -65,5 +75,4 @@
"
}
-ad_returnredirect "version-view?version_id=$version_id"
-
+ad_returnredirect "version-generate-info?version_id=$version_id&write_p=1"
Index: openacs-4/packages/acs-admin/www/apm/version-edit.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-edit.tcl,v
diff -u -r1.4 -r1.4.2.1
--- openacs-4/packages/acs-admin/www/apm/version-edit.tcl 18 Sep 2002 14:54:45 -0000 1.4
+++ openacs-4/packages/acs-admin/www/apm/version-edit.tcl 5 Mar 2003 14:43:12 -0000 1.4.2.1
@@ -10,13 +10,7 @@
{version_id:integer}
}
-db_1row apm_all_version_info {
- select version_id, package_key, package_uri, pretty_name, version_name, version_uri,
- summary, description_format, description, release_date, vendor, vendor_uri,
- enabled_p, installed_p, tagged_p, imported_p, data_model_loaded_p, activation_date, tarball_length,
- deactivation_date, distribution_uri, distribution_date, singleton_p, initial_install_p
- from apm_package_version_info where version_id = :version_id
-}
+db_1row apm_all_version_info {}
doc_body_append "[apm_header -form "action=\"version-edit-2\" method=post" [list "version-view?version_id=$version_id" "$pretty_name $version_name"] "Edit a Version"]
@@ -83,6 +77,11 @@
+
Auto-mount:
+
+
+
+
To create a new version of the package, type a new version number and
update the version URL accordingly. Leave the version name and URL alone to
Index: openacs-4/packages/acs-admin/www/apm/version-edit.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-edit.xql,v
diff -u -r1.2 -r1.2.4.1
--- openacs-4/packages/acs-admin/www/apm/version-edit.xql 9 May 2001 22:32:25 -0000 1.2
+++ openacs-4/packages/acs-admin/www/apm/version-edit.xql 5 Mar 2003 14:43:12 -0000 1.2.4.1
@@ -4,7 +4,7 @@
- select version_id, package_key, package_uri, pretty_name, version_name, version_uri,
+ select version_id, package_key, package_uri, pretty_name, version_name, version_uri, auto_mount,
summary, description_format, description, release_date, vendor, vendor_uri,
enabled_p, installed_p, tagged_p, imported_p, data_model_loaded_p, activation_date, tarball_length,
deactivation_date, distribution_uri, distribution_date, singleton_p, initial_install_p
Fisheye: Tag 1.1.4.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/version-files-oracle.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.1.2.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/version-files-postgresql.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/acs-admin/www/apm/version-files.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-files.tcl,v
diff -u -r1.7 -r1.7.2.1
--- openacs-4/packages/acs-admin/www/apm/version-files.tcl 18 Sep 2002 14:54:45 -0000 1.7
+++ openacs-4/packages/acs-admin/www/apm/version-files.tcl 5 Mar 2003 14:43:12 -0000 1.7.2.1
@@ -1,33 +1,19 @@
ad_page_contract {
List all the files in a particular version of a package.
- @param version_id The package to be processed.
- @param remove_files_p Set to 1 if you want to remove all the files.
@author Jon Salz [jsalz@arsdigita.com]
@creation-date 9 May 2000
@cvs-id $Id$
} {
{version_id:integer}
- {remove_files_p 0}
}
-db_1row apm_package_by_version_id {
- select pretty_name, version_name, package_key, installed_p, distribution_uri,
- tagged_p
- from apm_package_version_info where version_id = :version_id
-}
+apm_version_info $version_id
-if { $remove_files_p == 1 } {
- # This is really a "remove multiple files" page.
- set form "action=\"file-remove\" method=post"
- set apm_header_args [list [list "version-files?version_id=$version_id" "Files"] "Remove Files"]
-} else {
- set form ""
- set apm_header_args [list "Files"]
-}
+set form ""
+set apm_header_args [list "Files"]
-doc_body_append "[eval [concat [list apm_header -form $form [list "version-view?version_id=$version_id" "$pretty_name $version_name"]] $apm_header_args]]
-"
+doc_body_append "[eval [concat [list apm_header -form $form [list "version-view?version_id=$version_id" "$pretty_name $version_name"]] $apm_header_args]]"
doc_body_append "
@@ -40,17 +26,18 @@
set counter 0
doc_body_append "
Path
File type
-
Database support
Actions
\n"
+
Database support
\n"
-db_foreach apm_all_files {
- select f.file_id, f.path, f.file_type, nvl(t.pretty_name, 'Unknown type') file_pretty_name,
- f.db_type, nvl(d.pretty_db_name, 'All') as db_pretty_name
- from apm_package_files f, apm_package_file_types t, apm_package_db_types d
- where f.version_id = :version_id
- and f.file_type = t.file_type_key(+)
- and f.db_type = d.db_type_key(+)
- order by path
-} {
+foreach path [apm_get_package_files -package_key $package_key] {
+ set file_id ""
+ set db_type [apm_guess_db_type $package_key $path]
+ set db_pretty_name $db_type
+ set file_type [apm_guess_file_type $package_key $path]
+ if { [empty_string_p $file_type] } {
+ set file_type "?"
+ }
+ set file_pretty_name $file_type
+
incr counter
# Set i to the index of the last component which hasn't changed since the last component
@@ -86,10 +73,7 @@
doc_body_append ""
doc_body_append "
$file_pretty_name
 
$db_pretty_name
"
- if { $remove_files_p == 1 } {
- # Display a checkbox which the user can check to delete the file.
- doc_body_append "
"
- } else {
+
if { $installed_p == "t" } {
if { $file_type == "tcl_procs" || ($file_type == "query_file" && [db_compatible_rdbms_p $db_type]) } {
if { [nsv_exists apm_reload_watch "packages/$package_key/$path"] } {
@@ -99,77 +83,56 @@
if {![ad_parameter -package_id [ad_acs_kernel_id] \
PerformanceModeP request-processor 1]} {
# Provide a link to watch the procs file.
- doc_body_append "
+ "
}
}
doc_body_append [ad_footer]
-
Fisheye: Tag 1.2.2.1 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/version-files.xql'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/acs-admin/www/apm/version-reload.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-reload.tcl,v
diff -u -r1.2 -r1.2.2.1
--- openacs-4/packages/acs-admin/www/apm/version-reload.tcl 10 Sep 2002 22:21:59 -0000 1.2
+++ openacs-4/packages/acs-admin/www/apm/version-reload.tcl 5 Mar 2003 14:43:12 -0000 1.2.2.1
@@ -15,6 +15,8 @@
# files in $files.
apm_mark_version_for_reload $version_id files
+set file_id_list [list]
+
if { [llength $files] == 0 } {
doc_body_append "There are no changed files to reload in this package.
"
} else {
@@ -29,7 +31,8 @@
} else {
# This file isn't being watched right now - provide a link setting a watch on it.
set files_to_watch_p 1
- doc_body_append " (watch this file)"
+ doc_body_append " (watch this file)"
+ lappend file_id_list $file_id
}
doc_body_append "\n"
}
@@ -40,6 +43,8 @@
doc_body_append "If you know you're going to be modifying one of the above files frequently,
select the \"watch this file\" link next to a filename to cause the interpreters to
reload the file immediately whenever it is changed.
Display an XML package specification file for this version
"
if { ![info exists installed_version_id] || $installed_version_id == $version_id && \
[empty_string_p $distribution_uri] } {
# As long as there isn't a different installed version, and this package is being
# generated locally, allow the user to write a specification file for this version
# of the package.
- doc_body_append "
Write an XML package specification to the packages/$package_key/$package_key.info file\n"
}
if { $installed_p == "t" } {
if { [empty_string_p $distribution_uri] } {
# The distribution tarball was either (a) never generated, or (b) generated on this
# system. Allow the user to make a tarball based on files in the filesystem.
- doc_body_append "