Index: openacs-4/packages/acs-admin/www/apm/build-repository.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/Attic/build-repository.tcl,v diff -u -N -r1.17 -r1.18 --- openacs-4/packages/acs-admin/www/apm/build-repository.tcl 15 Jan 2007 07:53:00 -0000 1.17 +++ openacs-4/packages/acs-admin/www/apm/build-repository.tcl 27 Jun 2015 16:41:07 -0000 1.18 @@ -162,7 +162,7 @@ set package_key [lindex [file split $spec_file] end-1] set version_id [apm_version_id_from_package_key $package_key] - if { [lsearch -exact $exclude_package_list $package_key] != -1 } { + if {$package_key in $exclude_package_list} { ns_write "Package $package_key is on list of packages to exclude - skipping" continue } @@ -177,7 +177,7 @@ with_catch errmsg { array set version [apm_read_package_info_file $spec_file] - if { [lsearch -exact $packages $version(package.key)] != -1 } { + if {$version(package.key) in $packages} { ns_write "
  • Skipping package $package_key, because we already have another version of it" } else { lappend packages $version(package.key) @@ -224,7 +224,7 @@ # The path to the 'packages' directory in the checkout set packages_root_path [eval file join [lrange [file split $spec_file] 0 end-2]] - set tmp_filename [ns_tmpnam] + set tmp_filename [ad_tmpnam] lappend cmd --files-from $tmp_filename -C $packages_root_path set fp [open $tmp_filename w] Index: openacs-4/packages/acs-admin/www/apm/package-instances.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/package-instances.tcl,v diff -u -N -r1.2 -r1.3 --- openacs-4/packages/acs-admin/www/apm/package-instances.tcl 27 Oct 2014 16:38:52 -0000 1.2 +++ openacs-4/packages/acs-admin/www/apm/package-instances.tcl 27 Jun 2015 16:41:07 -0000 1.3 @@ -4,7 +4,7 @@ @creation-date 3 Sept 2014 @cvs-id $Id$ } { - {package_key:notnull} + {package_key:token,notnull} } set version_id [apm_highest_version $package_key] @@ -16,7 +16,7 @@ [list "/acs-admin/apm/" "Package Manager"] \ [list "/acs-admin/apm/version-view?version_id=$version_id" "Package $pretty_name"] \ $title] -set return_url [ad_conn url]?[export_vars { package_key }] +set return_url [export_vars -base [ad_conn url] { package_key }] append body

    $title