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 -r1.18 -r1.19
--- openacs-4/packages/acs-admin/www/apm/build-repository.tcl 27 Jun 2015 16:41:07 -0000 1.18
+++ openacs-4/packages/acs-admin/www/apm/build-repository.tcl 7 Aug 2017 23:47:45 -0000 1.19
@@ -98,15 +98,15 @@
#----------------------------------------------------------------------
# Wipe and re-create the working directory
-file delete -force $work_dir
+file delete -force -- $work_dir
file mkdir ${work_dir}
cd $work_dir
foreach channel [lsort -decreasing [array names channel_tag]] {
ns_write "
Channel $channel using tag $channel_tag($channel)
"
# Wipe and re-create the checkout directory
- file delete -force "${work_dir}openacs-4"
+ file delete -force -- "${work_dir}openacs-4"
# Prepare channel directory
set channel_dir "${work_dir}repository/${channel}/"
@@ -184,19 +184,19 @@
append manifest { } {} \n
- append manifest { } {} [ad_quotehtml $version(package.key)] {} \n
- append manifest { } {} [ad_quotehtml $version(name)] {} \n
- append manifest { } {} [ad_quotehtml $version(package-name)] {} \n
- append manifest { } {} [ad_quotehtml $version(package.type)] {} \n
- append manifest { } {} [ad_quotehtml $version(summary)] {} \n
- append manifest { } {}
- append manifest [ad_quotehtml $version(description)] {} \n
- append manifest { } {} [ad_quotehtml $version(release-date)] {} \n
- append manifest { } {} [ad_quotehtml $version(maturity)] {} \n
- append manifest { } {}
- append manifest [ad_quotehtml $version(license)] {} \n
- append manifest { } {}
- append manifest [ad_quotehtml $version(vendor)] {} \n
+ append manifest { } {} [ns_quotehtml $version(package.key)] {} \n
+ append manifest { } {} [ns_quotehtml $version(name)] {} \n
+ append manifest { } {} [ns_quotehtml $version(package-name)] {} \n
+ append manifest { } {} [ns_quotehtml $version(package.type)] {} \n
+ append manifest { } {} [ns_quotehtml $version(summary)] {} \n
+ append manifest { } {}
+ append manifest [ns_quotehtml $version(description)] {} \n
+ append manifest { } {} [ns_quotehtml $version(release-date)] {} \n
+ append manifest { } {} [ns_quotehtml $version(maturity)] {} \n
+ append manifest { } {}
+ append manifest [ns_quotehtml $version(license)] {} \n
+ append manifest { } {}
+ append manifest [ns_quotehtml $version(vendor)] {} \n
append manifest [apm::package_version::attributes::generate_xml \
-version_id $version_id \
@@ -234,7 +234,7 @@
close $fp
lappend cmd "|" [apm_gzip_cmd] -c ">" $apm_file
- #ns_log Notice "Executing: [ad_quotehtml $cmd]"
+ #ns_log Notice "Executing: [ns_quotehtml $cmd]"
eval $cmd
}
@@ -243,18 +243,17 @@
append manifest { } {} $apm_url {} \n
foreach elm $version(provides) {
- append manifest { } "" \n
+ append manifest { } "" \n
}
foreach elm $version(requires) {
- append manifest { } "" \n
+ append manifest { } "" \n
}
append manifest { } {} \n
}
} {
- global errorInfo
- ns_write "- Error on spec_file $spec_file: [ad_quotehtml $errmsg]
[ad_quotehtml $errorInfo]\n"
+ ns_write " - Error on spec_file $spec_file: [ns_quotehtml $errmsg]
[ns_quotehtml $::errorInfo]\n"
}
}
}
@@ -298,11 +297,17 @@
ns_write " - Moving work repository $work_repository_dirname to live repository dir at $repository_dir\n"
if { [file exists $repository_bak] } {
- file delete -force $repository_bak
+ file delete -force -- $repository_bak
}
if { [file exists $repository_dirname] } {
- file rename $repository_dirname $repository_bak
+ file rename -- $repository_dirname $repository_bak
}
-file rename $work_repository_dirname $repository_dirname
+file rename -- $work_repository_dirname $repository_dirname
ns_write "
DONE
\n"
+
+# Local variables:
+# mode: tcl
+# tcl-indent-level: 4
+# indent-tabs-mode: nil
+# End: