Ofer Schreiber has submitted this change and it was merged.
Change subject: packaging: setup: support package upgrade
......................................................................
packaging: setup: support package upgrade
yum reads exclude/include information to sack when first used. this has
a potential conflict with the overall transaction as the ordering
determine when the versionlock is read.
otopi was modified to create a new miniyum instance at when transaction
is started. this enables the PROGRAMS stage to run and read a fresh copy
of versionlock.
we cannot handle the versionlock using the regular transaction as it its
unlocked content should wrap the transaction or we have random yum
incompatibilities.
also, we cannot retrieve our package version in order to perform the
lock, as the setup package may be newer than the other packages, so use
rpm directly in order to figure out the specific versions of packages.
Change-Id: I399fb48d8cbd393ee12f700c0a68e7c1b51218f3
Signed-off-by: Alon Bar-Lev <alonbl(a)redhat.com>
---
M ovirt-engine.spec.in
M packaging/setup/bin/ovirt-engine-setup
M packaging/setup/ovirt_engine_setup/constants.py
M packaging/setup/plugins/ovirt-engine-common/core/offlinepackager.py
M packaging/setup/plugins/ovirt-engine-setup/core/uninstall.py
M packaging/setup/plugins/ovirt-engine-setup/dialog/titles.py
M packaging/setup/plugins/ovirt-engine-setup/distro-rpm/__init__.py
A packaging/setup/plugins/ovirt-engine-setup/distro-rpm/packages.py
D packaging/setup/plugins/ovirt-engine-setup/distro-rpm/versionlock.py
9 files changed, 447 insertions(+), 116 deletions(-)
Approvals:
Ofer Schreiber: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/15777
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I399fb48d8cbd393ee12f700c0a68e7c1b51218f3
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alonbl(a)redhat.com>
Gerrit-Reviewer: Alex Lourie <alourie(a)redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl(a)redhat.com>
Gerrit-Reviewer: Ofer Schreiber <oschreib(a)redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo(a)redhat.com>