summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-07-20 21:04:56 +0000
committerMatt Wilson <msw@redhat.com>2001-07-20 21:04:56 +0000
commitdd9ca746d22db0fe265ba2146d117e1d3123bdc3 (patch)
tree73e39d2759dd3519030b6c973193135636a92718
parentfdad566080ad165d07d3a00877a7fb1f8d152998 (diff)
downloadanaconda-dd9ca746d22db0fe265ba2146d117e1d3123bdc3.tar.gz
anaconda-dd9ca746d22db0fe265ba2146d117e1d3123bdc3.tar.xz
anaconda-dd9ca746d22db0fe265ba2146d117e1d3123bdc3.zip
remove the other log too, if it's there.
-rw-r--r--packages.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages.py b/packages.py
index e0d88dc98..9748eb705 100644
--- a/packages.py
+++ b/packages.py
@@ -488,7 +488,12 @@ def doInstall(method, id, intf, instPath):
pass
instLog = open(instLogName, "w+")
- syslog.start (instPath, "%s%s.syslog" % (instPath, logname))
+ syslogname = "%s%s.syslog" % (instPath, logname)
+ try:
+ os.unlink (syslogname)
+ except OSError:
+ pass
+ syslog.start (instPath, syslogname)
ts.scriptFd = instLog.fileno ()
# the transaction set dup()s the file descriptor and will close the