PATCH: remove redundant code from backend.py

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The anaconda backend superclass currently opens the install log twice.

Elliot

-- 
Elliot Peele
rPath, Inc.
elliot@xxxxxxxxx
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:

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux