From d9f518d92d3a8e51d0edb90b1b9fd419a518b302 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 30 Oct 2019 14:26:23 +0200 Subject: Implemented PPC update rollback... --- .../PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs index a6509bd94..b7573ec60 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs @@ -360,6 +360,14 @@ namespace Tango.PPC.Common.MachineUpdate result.SetException(ex); } + finally + { + try + { + File.Delete(dbBackupFile); + } + catch { } + } return await result.Task; } -- cgit v1.3.1