diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-10-30 14:26:23 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-10-30 14:26:23 +0200 |
| commit | d9f518d92d3a8e51d0edb90b1b9fd419a518b302 (patch) | |
| tree | 497899228511d995fd22666486e76a1448fdeb41 /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs | |
| parent | 27671ba7c2a09b201a9fe92b11bad482ab93f93f (diff) | |
| download | Tango-d9f518d92d3a8e51d0edb90b1b9fd419a518b302.tar.gz Tango-d9f518d92d3a8e51d0edb90b1b9fd419a518b302.zip | |
Implemented PPC update rollback...
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |
