summaryrefslogtreecommitdiffstats
path: root/anaconda_log.py
diff options
context:
space:
mode:
authorlaroche <laroche>2001-07-20 08:08:06 +0000
committerlaroche <laroche>2001-07-20 08:08:06 +0000
commit28a046bd21960576b3c1628b75e6f19a4e039046 (patch)
treec28c206e6e6a726761093b4181302d59cb2a48e0 /anaconda_log.py
parentb28e0fc487e766dd9e236f7660c02210c7d6c616 (diff)
downloadanaconda-28a046bd21960576b3c1628b75e6f19a4e039046.tar.gz
anaconda-28a046bd21960576b3c1628b75e6f19a4e039046.tar.xz
anaconda-28a046bd21960576b3c1628b75e6f19a4e039046.zip
add s390/s390x patchesr0-9-1
Diffstat (limited to 'anaconda_log.py')
-rw-r--r--anaconda_log.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/anaconda_log.py b/anaconda_log.py
index f599dbbb3..27e08a4ee 100644
--- a/anaconda_log.py
+++ b/anaconda_log.py
@@ -14,6 +14,7 @@
#
import sys
+import iutil
class LogFile:
def __init__ (self):
@@ -27,11 +28,17 @@ class LogFile:
try:
self.logFile = open(file, "w")
except:
- self.logFile = sys.stderr
+ if iutil.getArch() != "s390" and iutil.getArch() != "s390x":
+ self.logFile = sys.stderr
+ else:
+ self.logFile = open("/tmp/anaconda-s390.log", "w")
elif file:
self.logFile = file
else:
- self.logFile = open("/dev/tty3", "w")
+ if iutil.getArch() != "s390" and iutil.getArch() != "s390x":
+ self.logFile = open("/dev/tty3", "w")
+ else:
+ self.logFile = open("/tmp/anaconda-s390.log", "w")
def __call__ (self, format, *args):
if not self.logFile: