[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
PATCH: remove redundant code from backend.py
- From: Elliot Peele <elliot rpath com>
- To: anaconda-devel-list redhat com
- Subject: PATCH: remove redundant code from backend.py
- Date: Tue, 06 Mar 2007 17:14:46 -0500
The anaconda backend superclass currently opens the install log twice.
Elliot
--
Elliot Peele
rPath, Inc.
elliot rpath com
919.851.3984 2117
diff -r fd3439e8ba92 -r 3fc293a8dca0 backend.py
--- a/backend.py Mon Mar 05 23:14:51 2007 -0500
+++ b/backend.py Tue Mar 06 00:04:11 2007 -0500
@@ -147,21 +147,9 @@ class AnacondaBackend:
except OSError:
pass
- instLog = open(instLogName, "w+")
- if upgrade:
- logname = '/root/upgrade.log'
- else:
- logname = '/root/install.log'
-
- instLogName = instPath + logname
- try:
- shutil.rmtree (instLogName)
- except OSError:
- pass
-
self.instLog = open(instLogName, "w+")
- # dont start syslogd if we arent creating filesystems
+ # dont start syslogd if we arent creating filesystems
if flags.setupFilesystems:
syslogname = "%s%s.syslog" % (instPath, logname)
try:
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]