summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-03-29 17:38:13 +0000
committerMatt Wilson <msw@redhat.com>2001-03-29 17:38:13 +0000
commit738f8003de71c7f96ed61c4b00d9db02e719ee98 (patch)
treecc97cab4bd93a8d450d6c1f284ec0598ed308b1d
parent95d26756a780b5b850b6a6219743b6e0b9923545 (diff)
downloadanaconda-738f8003de71c7f96ed61c4b00d9db02e719ee98.tar.gz
anaconda-738f8003de71c7f96ed61c4b00d9db02e719ee98.tar.xz
anaconda-738f8003de71c7f96ed61c4b00d9db02e719ee98.zip
text.py: destroy the scale in progresswindow on pop - masks a SEGV on
todo.doInstall teardown. upgrade.py: we don't need the progresswindow passed in anymore iw/upgrade_swap_gui.py: don't pass in the progresswindow textw/upgrade_text.py: don't pass in the progresswindow
-rw-r--r--iw/upgrade_swap_gui.py5
-rw-r--r--text.py2
-rw-r--r--textw/upgrade_text.py4
-rw-r--r--upgrade.py2
4 files changed, 8 insertions, 5 deletions
diff --git a/iw/upgrade_swap_gui.py b/iw/upgrade_swap_gui.py
index 0a745e856..bcd19ea35 100644
--- a/iw/upgrade_swap_gui.py
+++ b/iw/upgrade_swap_gui.py
@@ -72,8 +72,9 @@ class UpgradeSwapWindow (InstallWindow):
else:
threads_leave()
if self.todo.setupFilesystems:
- upgrade.createSwapFile(self.todo.instPath, self.todo.fstab, mnt, val,
- self.todo.intf.progressWindow)
+ upgrade.createSwapFile(self.todo.instPath, self.todo.fstab,
+ mnt, val)
+
self.todo.upgradeFindPackages()
threads_enter()
return None
diff --git a/text.py b/text.py
index ea2737f58..144e21c84 100644
--- a/text.py
+++ b/text.py
@@ -771,6 +771,8 @@ class ProgressWindow:
def pop(self):
self.screen.popWindow()
self.screen.refresh()
+ del self.scale
+ self.scale = None
def set (self, amount):
self.scale.set (amount)
diff --git a/textw/upgrade_text.py b/textw/upgrade_text.py
index bdbe01670..09a3857b8 100644
--- a/textw/upgrade_text.py
+++ b/textw/upgrade_text.py
@@ -119,8 +119,8 @@ class UpgradeSwapWindow:
else:
screen.popWindow()
if todo.setupFilesystems:
- upgrade.createSwapFile(todo.instPath, todo.fstab, mnt, val,
- todo.intf.progressWindow)
+ upgrade.createSwapFile(todo.instPath, todo.fstab,
+ mnt, val)
todo.upgradeFindPackages ()
return INSTALL_OK
diff --git a/upgrade.py b/upgrade.py
index 5d0889d43..873620caa 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -159,7 +159,7 @@ def swapfileExists(swapname):
except:
return 0
-def createSwapFile(instPath, theFstab, mntPoint, size, progressWindow):
+def createSwapFile(instPath, theFstab, mntPoint, size):
fstabPath = instPath + "/etc/fstab"
prefix = ""
if theFstab.rootOnLoop():