diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-08-02 19:20:53 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-08-02 19:20:53 +0000 |
commit | 06e5a2b4b03f1d4bb5b494547f3d7af7b5f58df6 (patch) | |
tree | 57d215e068705828b1ed3a3ddb79b6fd0cca15de | |
parent | 00561d67e74b9b794ae3bebbb15478a51dbbba03 (diff) | |
download | anaconda-06e5a2b4b03f1d4bb5b494547f3d7af7b5f58df6.tar.gz anaconda-06e5a2b4b03f1d4bb5b494547f3d7af7b5f58df6.tar.xz anaconda-06e5a2b4b03f1d4bb5b494547f3d7af7b5f58df6.zip |
use rmrf instead of unlinking the logfiles if they already exist so that if they're directories, we don't traceback
-rw-r--r-- | packages.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages.py b/packages.py index dbed16b24..d9655d196 100644 --- a/packages.py +++ b/packages.py @@ -488,14 +488,14 @@ def doInstall(method, id, intf, instPath): instLogName = instPath + logname try: - os.unlink (instLogName) + iutil.rmrf (instLogName) except OSError: pass instLog = open(instLogName, "w+") syslogname = "%s%s.syslog" % (instPath, logname) try: - os.unlink (syslogname) + iutil.rmrf (syslogname) except OSError: pass syslog.start (instPath, syslogname) |