fixed Update scenario
@@ -234,7 +234,7 @@ def uninstall():
final_check = final_check_if_dpkg_locked)
except Exception as ex:
exit_code = 1
- message = 'Uninstall failed with error: {0}\n' \
+ output = 'Uninstall failed with error: {0}\n' \
'Stacktrace: {1}'.format(ex, traceback.format_exc())
return exit_code, output
@@ -270,8 +270,15 @@ def update():
Uninstall the existing installation on the machine and
install the bundle included in the package
"""
- uninstall()
- install()
+ print ("Uinstalling the curretn mdsd")
+ exit_code, output = uninstall()
+ if exit_code != 0:
+ return exit_code, output
+ print ("installing the curretn mdsd")
+ exit_code, output = install()
+ print ("Update finished")
+ return exit_code, output
+
# Dictionary of operations strings to methods
