Index: openacs-4/packages/xowiki/xowiki.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/xowiki.info,v diff -u -r1.154 -r1.155 --- openacs-4/packages/xowiki/xowiki.info 7 Aug 2017 23:48:30 -0000 1.154 +++ openacs-4/packages/xowiki/xowiki.info 5 Oct 2017 12:20:25 -0000 1.155 @@ -10,7 +10,7 @@ t xowiki - + Gustaf Neumann A xotcl-based enterprise wiki system with multiple object types 2017-08-06 @@ -55,7 +55,7 @@ BSD-Style 2 - + Index: openacs-4/packages/xowiki/tcl/upgrade/upgrade.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/upgrade/upgrade.tcl,v diff -u -r1.12 -r1.13 --- openacs-4/packages/xowiki/tcl/upgrade/upgrade.tcl 7 Aug 2017 23:48:31 -0000 1.12 +++ openacs-4/packages/xowiki/tcl/upgrade/upgrade.tcl 5 Oct 2017 12:20:25 -0000 1.13 @@ -720,6 +720,28 @@ } + set v 5.10.0d2 + if {[apm_version_names_compare $from_version_name $v] == -1 && + [apm_version_names_compare $to_version_name $v] > -1} { + ns_log notice "-- upgrading to $v" + + foreach package_id [::xowiki::Package instances -closure true] { + ns_log notice "::xowiki::Package initialize -package_id $package_id -init_url false" + if {[catch { + ::xowiki::Package initialize -package_id $package_id -init_url false + } errorMsg]} { + ns_log notice "Could not initialize package '$package_id': $errorMsg" + continue + } + ns_log notice "update prototype page" + # reload updated prototype pages. If new "www"-prefix does not work yet, + # try old format + if {[catch {$package_id www-import-prototype-page categories-portlet}]} { + $package_id import-prototype-page categories-portlet + } + } + } + } }