summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/todo.py b/todo.py
index 686b2ffb1..b8da9dbc9 100644
--- a/todo.py
+++ b/todo.py
@@ -1820,6 +1820,10 @@ class ToDo:
logname = '/tmp/install.log'
self.instLogName = self.instPath + logname
+ try:
+ os.unlink (self.instLogName)
+ except OSError:
+ pass
self.instLog = open(self.instLogName, "w+")
syslog = InstSyslog (self.instPath, self.instPath + logname)