Alex Lourie has uploaded a new change for review.

Change subject: packaging: small update to state handling during upgrade
......................................................................

packaging: small update to state handling during upgrade

Change-Id: I0588724ed25a01a422adc52f45bac6c28a4d7134
Signed-off-by: Alex Lourie <[email protected]>
---
M packaging/fedora/setup/engine-upgrade.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/69/7569/1

diff --git a/packaging/fedora/setup/engine-upgrade.py 
b/packaging/fedora/setup/engine-upgrade.py
index 66851e1..02ea348 100755
--- a/packaging/fedora/setup/engine-upgrade.py
+++ b/packaging/fedora/setup/engine-upgrade.py
@@ -307,7 +307,6 @@
             ] + RPM_LIST.split()
             output, rc = utils.execCmd(cmdList=cmd, failOnError=True, 
msg=MSG_ERROR_YUM_UPDATE)
             logging.debug("Yum update completed successfully")
-            self.updated = True
         finally:
             self._lock()
 
@@ -770,6 +769,9 @@
         # yum update
         runFunc(upgradeFunc, MSG_INFO_YUM_UPDATE)
 
+        # If we're here, update/upgrade went fine, so
+        rhyum.updated = True
+
         # define db connections services
         etlService = utils.Service("ovirt-engine-etl")
         notificationService = utils.Service("ovirt-engine-notifierd")


--
To view, visit http://gerrit.ovirt.org/7569
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0588724ed25a01a422adc52f45bac6c28a4d7134
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alex Lourie <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to