summaryrefslogtreecommitdiffstats
path: root/anaconda_log.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-06-20 02:07:35 +0000
committerErik Troan <ewt@redhat.com>2001-06-20 02:07:35 +0000
commit3909ecc3361e3a5a223a55147d7881275907b54d (patch)
tree75adb50975bff072b1100696b7fa6f67e3293868 /anaconda_log.py
parent99da1533c688ec3be0af902d71943c41b8ac4f4f (diff)
downloadanaconda-3909ecc3361e3a5a223a55147d7881275907b54d.tar.gz
anaconda-3909ecc3361e3a5a223a55147d7881275907b54d.tar.xz
anaconda-3909ecc3361e3a5a223a55147d7881275907b54d.zip
merge from (now defunct) anaconda-dispatch branch
Diffstat (limited to 'anaconda_log.py')
-rw-r--r--anaconda_log.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/anaconda_log.py b/anaconda_log.py
index 25f9163cd..8b086aef6 100644
--- a/anaconda_log.py
+++ b/anaconda_log.py
@@ -1,4 +1,4 @@
-import sys, os
+import sys
class LogFile:
def __init__ (self):
@@ -7,18 +7,14 @@ class LogFile:
def close (self):
self.logFile.close ()
- def open (self, serial, reconfigOnly, test, setupFilesystems):
- if reconfigOnly:
+ def open (self, file):
+ if type(file) == type("hello"):
try:
- self.logFile = open("/var/log/reconfig.log", "w")
+ self.logFile = open(file, "w")
except:
self.logFile = sys.stderr
- elif not setupFilesystems:
- self.logFile = sys.stderr
- elif serial:
- self.logFile = open("/tmp/install.log", "w")
- elif test:
- self.logFile = open("/tmp/anaconda-debug.log", "w")
+ elif file:
+ self.logFile = file
else:
self.logFile = open("/dev/tty3", "w")