summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-03-30 22:59:22 +0000
committerMatt Wilson <msw@redhat.com>2001-03-30 22:59:22 +0000
commitdff1b88388aa88c333bb3ffefad9fc895e9ec727 (patch)
tree2264d1073c20de0099c2f5c6502247bcc8e2486b
parentb04cd17f0ed74576704f87f53ff523718f23f773 (diff)
downloadanaconda-dff1b88388aa88c333bb3ffefad9fc895e9ec727.tar.gz
anaconda-dff1b88388aa88c333bb3ffefad9fc895e9ec727.tar.xz
anaconda-dff1b88388aa88c333bb3ffefad9fc895e9ec727.zip
unlink log first (#34030)
-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)