Univention Bugzilla – Bug 33537
Update barriers for apps
Last modified: 2016-07-21 15:16:00 CEST
Sometimes it is necessary for some apps to follow a strict update path. Updating from version A → version B, then version B → version C. It should be possible to define update barriers within the ini file to determine the "next" app version. E.g. available versions: A, B, C, D, E, F(==lastest) ---[versionD.ini]--- UpdateBarrier=true --- Should result in the following possible update steps: A → D B → D C → D D → F E → F
See comment #5 at Ticket#2015102321000675 and comment #9 at Ticket#2015102321000577
univention-appcenter 5.0.21-19.190.201607141025 ini: ID=myapp Version=3.0 RequiredAppVersionUpgrade=2.0 => myapp=1.0 will not be able to upgrade to myapp=3.0. The App Center shows that an upgrade is available, but only to myapp=2.0
local appcenter: -> grep -i version horde*.ini horde_20150804.ini:# application version horde_20150804.ini:Version=5.2.7-1 horde_20160804.ini:# application version horde_20160804.ini:Version=5.3.7-1 horde_20170804.ini:# application version horde_20170804.ini:Version=5.4.7-1 horde_20170804.ini:RequiredAppVersionUpgrade=5.3.7-1 univention-app works, updates horde_20150804 to horde_20160804 then the second update updates horde_20160804 to horde_20170804 But UMC refuses the update. UMC shows Installed version 5.2.7-1 Candidate version 5.3.7-1 this is OK (5.4.7-1 is not allowd if 5.2.7-1 is installed) but if i start the upgrade, i get "Horde Groupware Webmail Edition cannot be updated. The application is either not installed or no newer version is available."
Improved fixes for legacy code in univention-appcenter 5.0.21-25.197.201607191724
Also fixed univention-add-app in univention-updater 11.0.10-2.1479.201607201037
(Requires a new YAML...) univention-updater.yaml
univention-updater: * OK - code * OK - univention-add-app * OK - YAML univention-appcenter: setup: local appcenter: -> grep -i version horde*.ini horde_20150804.ini:# application version horde_20150804.ini:Version=5.2.7-1 horde_20160804.ini:# application version horde_20160804.ini:Version=5.3.7-1 horde_20170804.ini:# application version horde_20170804.ini:Version=5.4.7-1 horde_20170804.ini:RequiredAppVersionUpgrade=5.3.7-1 * OK - Upgrade with "RequiredAppVersionUpgrade=5.3.7-1" in horde_20170804.in from 5.2.7-1 to 5.4.7-1 only via 5.3.7-1 * OK - Upgrade from 5.2.7-1 to 5.4.7-1 possible without "RequiredAppVersionUpgrade" * OK - tested with univention-app (docker) and UMC (legacy) * OK - YAML
<http://errata.software-univention.de/ucs/4.1/218.html> <http://errata.software-univention.de/ucs/4.1/219.html>