Alon Bar-Lev has uploaded a new change for review. Change subject: packaging: setup: do not allow setup to continue if there is an upgrade ......................................................................
packaging: setup: do not allow setup to continue if there is an upgrade if setup is newer than installed packages (x.(y-n).z, x.y.(z-n)), the setup is incompatible of installing the previous version. abort the process to avoid damage. Change-Id: I84dc383696cf3d3b85d0f64b84896113f4fe91b5 Signed-off-by: Alon Bar-Lev <[email protected]> --- M packaging/setup/plugins/ovirt-engine-setup/distro-rpm/packages.py 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/92/16792/1 diff --git a/packaging/setup/plugins/ovirt-engine-setup/distro-rpm/packages.py b/packaging/setup/plugins/ovirt-engine-setup/distro-rpm/packages.py index 8bb28a5..acd2426 100644 --- a/packaging/setup/plugins/ovirt-engine-setup/distro-rpm/packages.py +++ b/packaging/setup/plugins/ovirt-engine-setup/distro-rpm/packages.py @@ -387,6 +387,11 @@ osetupcons.RPMDistroEnv.ENABLE_UPGRADE ] + if not self._enabled and upgradeAvailable: + raise RuntimeError( + _('Aborted, packages must be updated') + ) + @plugin.event( stage=plugin.Stages.STAGE_PACKAGES, condition=lambda self: self._enabled, -- To view, visit http://gerrit.ovirt.org/16792 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I84dc383696cf3d3b85d0f64b84896113f4fe91b5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
