diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-20 21:04:56 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-20 21:04:56 +0000 |
commit | dd9ca746d22db0fe265ba2146d117e1d3123bdc3 (patch) | |
tree | 73e39d2759dd3519030b6c973193135636a92718 /packages.py | |
parent | fdad566080ad165d07d3a00877a7fb1f8d152998 (diff) | |
download | anaconda-dd9ca746d22db0fe265ba2146d117e1d3123bdc3.tar.gz anaconda-dd9ca746d22db0fe265ba2146d117e1d3123bdc3.tar.xz anaconda-dd9ca746d22db0fe265ba2146d117e1d3123bdc3.zip |
remove the other log too, if it's there.
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 7 |
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 |