summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog18
-rw-r--r--dispatch.py2
-rw-r--r--exception.py3
-rw-r--r--fsset.py2
-rwxr-xr-xgui.py2
-rw-r--r--installclass.py2
-rw-r--r--livecd.py6
-rw-r--r--partErrors.py9
-rw-r--r--rescue.py1
-rw-r--r--syslogd.py1
-rw-r--r--vnc.py3
11 files changed, 36 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 7cd7bc811..451ead431 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,13 +27,31 @@
* dispatch.py (installSteps): Revert change for writing out
anaconda-ks.cfg earlier since this isn't possible on livecd.
+ (Dispatcher): Subclass from object so properties work.
+
+ * exception.py (runTracebackScripts): Pass anaconda reference.
* fsset.py (readFstab): Fix upgrade traceback (#296571).
+ (allocateLoopback): Return the correct value.
+
+ * gui.py (ExceptionWindow.__init__): Fix syntax error.
+
+ * installclass.py (BaseInstallClass): Subclass from object so
+ properties work.
+
+ * livecd.py (LiveCDImageMethod.unmountNonFstabDirs): Take an anaconda
+ instance as a parameter.
+
+ * partErrors.py (LabelError): Add from rhel5-branch.
+
+ * syslogd.py (Syslogd.__init__): Remove pointless code.
* text.py (InstallInterface.helpWindow): Pass the correct number of
arguments when handling an exception.
(InstallInterface.getInstallKey): Fix mapping for translation.
+ * vnc.py: Fix minor nitpicking errors.
+
2007-09-19 Jeremy Katz <katzj@redhat.com>
* livecd.py (LiveCDImageMethod.unmountNonFstabDirs): Fix syntax error.
diff --git a/dispatch.py b/dispatch.py
index 07f1adbd4..de3ebe9ef 100644
--- a/dispatch.py
+++ b/dispatch.py
@@ -115,7 +115,7 @@ installSteps = [
("complete", ),
]
-class Dispatcher:
+class Dispatcher(object):
def gotoPrev(self):
self._setDir(DISPATCH_BACK)
diff --git a/exception.py b/exception.py
index 24905beac..21a1408f2 100644
--- a/exception.py
+++ b/exception.py
@@ -25,7 +25,6 @@ import iutil
import types
import bdb
import rhpl
-import time
from string import joinfields
from cPickle import Pickler
from rhpl.translate import _
@@ -360,7 +359,7 @@ def handleException(anaconda, (type, value, tb)):
# run kickstart traceback scripts (if necessary)
try:
if anaconda.isKickstart:
- kickstart.runTracebackScripts()
+ kickstart.runTracebackScripts(anaconda)
except:
pass
diff --git a/fsset.py b/fsset.py
index 8ce5a2988..0abee48ac 100644
--- a/fsset.py
+++ b/fsset.py
@@ -2596,7 +2596,7 @@ def allocateLoopback(file):
continue
break
if found:
- return dev
+ return path
return None
def ext2FormatFilesystem(argList, messageFile, windowCreator, mntpoint):
diff --git a/gui.py b/gui.py
index 445d193a6..363b642b8 100755
--- a/gui.py
+++ b/gui.py
@@ -701,7 +701,7 @@ class ExceptionWindow:
textbuf.insert(iter, line)
exnView.set_buffer(textbuf)
- except IOError (errnum, msg):
+ except IOError, (errnum, msg):
log.error("Could not read %s, skipping: %s" % (longTracebackFile, msg))
vbox.remove(expander)
else:
diff --git a/installclass.py b/installclass.py
index 40102691e..e4be528b8 100644
--- a/installclass.py
+++ b/installclass.py
@@ -33,7 +33,7 @@ log = logging.getLogger("anaconda")
from flags import flags
from constants import *
-class BaseInstallClass:
+class BaseInstallClass(object):
# default to not being hidden
hidden = 0
pixmap = None
diff --git a/livecd.py b/livecd.py
index a8e6bb178..28601ed0d 100644
--- a/livecd.py
+++ b/livecd.py
@@ -98,7 +98,7 @@ class LiveCDImageMethod(installmethod.InstallMethod):
custom_buttons=[_("Exit installer")])
sys.exit(0)
- def unmountNonFstabDirs(self):
+ def unmountNonFstabDirs(self, anaconda):
# unmount things that aren't listed in /etc/fstab. *sigh*
dirs = ["/dev"]
if flags.selinux:
@@ -110,7 +110,7 @@ class LiveCDImageMethod(installmethod.InstallMethod):
log.error("unable to unmount %s: %s" %(dir, e))
def postAction(self, anaconda):
- self.unmountNonFstabDirs()
+ self.unmountNonFstabDirs(anaconda)
try:
anaconda.id.fsset.umountFilesystems(anaconda.rootPath,
swapoff = False)
@@ -157,7 +157,7 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
def doPreInstall(self, anaconda):
if anaconda.dir == DISPATCH_BACK:
- anaconda.method.unmountNonFstabDirs()
+ anaconda.method.unmountNonFstabDirs(anaconda)
return
anaconda.id.fsset.umountFilesystems(anaconda.rootPath, swapoff = False)
diff --git a/partErrors.py b/partErrors.py
index e85e934dc..9aa323c1d 100644
--- a/partErrors.py
+++ b/partErrors.py
@@ -29,7 +29,14 @@ class PartitioningWarning(Exception):
"""A warning which may be ignored and still complete the installation."""
def __init__ (self, value):
self.value = value
-
+
def __str__ (self):
return self.value
+class LabelError(Exception):
+ """The device could not be labeled."""
+ def __init__(self, value):
+ self.value = value
+
+ def __str__(self):
+ return self.value
diff --git a/rescue.py b/rescue.py
index 8c8b63d12..0c5a03961 100644
--- a/rescue.py
+++ b/rescue.py
@@ -25,6 +25,7 @@ import isys
import iutil
import fsset
import shutil
+import time
from rhpl.translate import _
diff --git a/syslogd.py b/syslogd.py
index 578893372..1971404dd 100644
--- a/syslogd.py
+++ b/syslogd.py
@@ -55,7 +55,6 @@ class Syslogd:
fd.close()
def __init__(self, root = "", output = sys.stdout, socket = "/dev/log"):
- output = output
filename = root + socket;
self.goSyslog(output, filename)
diff --git a/vnc.py b/vnc.py
index 9eeee5ff6..52353833f 100644
--- a/vnc.py
+++ b/vnc.py
@@ -22,7 +22,6 @@ import network
import isys
import product
import iutil
-import network
import socket
import logging
@@ -33,7 +32,7 @@ def askVncWindow():
if not os.access('/usr/bin/Xvnc', os.X_OK):
return -1
- if network.hasActiveNetDev() == False:
+ if not network.hasActiveNetDev():
return -1
screen = SnackScreen()