[longomatch] Don't delete newly converted template



commit 84f1a983e6b41981f87f94857c729fb918316e5c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Aug 21 00:10:52 2009 +0200

    Don't delete newly converted template

 LongoMatch/Compat/0.0/TemplatesMigrator.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch/Compat/0.0/TemplatesMigrator.cs b/LongoMatch/Compat/0.0/TemplatesMigrator.cs
index ae19569..2572d82 100644
--- a/LongoMatch/Compat/0.0/TemplatesMigrator.cs
+++ b/LongoMatch/Compat/0.0/TemplatesMigrator.cs
@@ -85,9 +85,9 @@ namespace LongoMatch.Compat
 					}
 				}
 				newFileName = Path.Combine(MainClass.TemplatesDir(),Path.GetFileName(templateFile));
-				SectionsWriter.UpdateTemplate(newFileName,newTemplate);
 				File.Copy(templateFile ,templateFile+".old",true);
-				File.Delete(templateFile);		
+				File.Delete(templateFile);	
+				SectionsWriter.UpdateTemplate(newFileName,newTemplate);
 				SendEvent(String.Format("Template {0} converted successfully!",Path.GetFileName(templateFile)));
 			}
 			SendEvent(DONE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]