diff options
author | laroche <laroche> | 2001-07-20 08:08:06 +0000 |
---|---|---|
committer | laroche <laroche> | 2001-07-20 08:08:06 +0000 |
commit | 28a046bd21960576b3c1628b75e6f19a4e039046 (patch) | |
tree | c28c206e6e6a726761093b4181302d59cb2a48e0 /log.py | |
parent | b28e0fc487e766dd9e236f7660c02210c7d6c616 (diff) | |
download | anaconda-28a046bd21960576b3c1628b75e6f19a4e039046.tar.gz anaconda-28a046bd21960576b3c1628b75e6f19a4e039046.tar.xz anaconda-28a046bd21960576b3c1628b75e6f19a4e039046.zip |
add s390/s390x patchesr0-9-1
Diffstat (limited to 'log.py')
-rw-r--r-- | log.py | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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: |