Index: openacs-4/packages/acs-admin/tcl/apm-admin-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/tcl/apm-admin-procs.tcl,v diff -u -N -r1.20.2.2 -r1.20.2.3 --- openacs-4/packages/acs-admin/tcl/apm-admin-procs.tcl 4 Sep 2015 09:32:29 -0000 1.20.2.2 +++ openacs-4/packages/acs-admin/tcl/apm-admin-procs.tcl 5 Sep 2015 08:07:26 -0000 1.20.2.3 @@ -395,18 +395,18 @@ append manifest \ " " \n \ - " [ad_quotehtml $pkg_info(package.key)]\n" \ - " [ad_quotehtml $pkg_info(name)]\n" \ - " [ad_quotehtml $pkg_info(package-name)]\n" \ - " [ad_quotehtml $pkg_info(package.type)]\n" \ - " [ad_quotehtml $pkg_info(summary)]\n" \ - " " \ - [ad_quotehtml $pkg_info(description)] "\n" \ - " [ad_quotehtml $pkg_info(release-date)]\n" \ - " " \ - [ad_quotehtml $pkg_info(vendor)] "\n" \ - " " \ - [ad_quotehtml $pkg_info(license)] "\n" \ + " [ns_quotehtml $pkg_info(package.key)]\n" \ + " [ns_quotehtml $pkg_info(name)]\n" \ + " [ns_quotehtml $pkg_info(package-name)]\n" \ + " [ns_quotehtml $pkg_info(package.type)]\n" \ + " [ns_quotehtml $pkg_info(summary)]\n" \ + " " \ + [ns_quotehtml $pkg_info(description)] "\n" \ + " [ns_quotehtml $pkg_info(release-date)]\n" \ + " " \ + [ns_quotehtml $pkg_info(vendor)] "\n" \ + " " \ + [ns_quotehtml $pkg_info(license)] "\n" \ " $pkg_info(maturity)\n" foreach e $pkg_info(install) { @@ -463,14 +463,14 @@ append manifest " $apm_url\n" foreach elm $pkg_info(provides) { append manifest " \n" + "url=\"[ns_quotehtml [lindex $elm 0]]\" " \ + "version=\"[ns_quotehtml [lindex $elm 1]]\" />\n" } foreach elm $pkg_info(requires) { append manifest " \n" + "url=\"[ns_quotehtml [lindex $elm 0]]\" " \ + "version=\"[ns_quotehtml [lindex $elm 1]]\" />\n" } append manifest " \n" } @@ -574,11 +574,19 @@ ns_log Notice "Repository: Finishing Repository" + foreach channel [array names channel_tag] { + regexp {^([1-9][0-9]*)-([0-9]+)$} $channel . major minor + set tag_order([format %.3d $major]-[format %.3d $minor]) $channel + set tag_label($channel) "OpenACS $major.$minor" + } + + # Write the index page ns_log Notice "Repository: Writing repository index page to ${work_dir}repository/index.adp" - template::multirow create channels name tag - foreach channel [lsort -decreasing [array names channel_tag]] { - template::multirow append channels $channel $channel_tag($channel) + template::multirow create channels name tag label + foreach key [lsort -decreasing [array names tag_order]] { + set channel $tag_order($key) + template::multirow append channels $channel $channel_tag($channel) $tag_label($channel) } set fw [open "${work_dir}repository/index.adp" w] puts $fw "\nOpenACS Package Repository\n\n"