aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-10-30 14:26:23 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-10-30 14:26:23 +0200
commitd9f518d92d3a8e51d0edb90b1b9fd419a518b302 (patch)
tree497899228511d995fd22666486e76a1448fdeb41 /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
parent27671ba7c2a09b201a9fe92b11bad482ab93f93f (diff)
downloadTango-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.cs8
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;
}