diff options
Diffstat (limited to 'iw/upgrade_swap_gui.py')
-rw-r--r-- | iw/upgrade_swap_gui.py | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/iw/upgrade_swap_gui.py b/iw/upgrade_swap_gui.py index 87dc71ac0..6ae86e04e 100644 --- a/iw/upgrade_swap_gui.py +++ b/iw/upgrade_swap_gui.py @@ -73,23 +73,14 @@ class UpgradeSwapWindow (InstallWindow): def clist_cb(self, clist, row, col, data): self.row = row - def getScreen (self, intf, fsset, instPath, swapInfo, dispatch): - -# -# use to test function -# -# fslist = [('/', 'hda1', 1000)] -# fslist.append(('/var', 'hda2', 100)) -# fslist.append(('/opt', 'hda3', 500)) -# swapInfo = (fslist, 1000, '/var') - + def getScreen (self, anaconda): self.neededSwap = 0 - self.fsset = fsset - self.instPath = instPath - self.intf = intf - self.dispatch = dispatch + self.fsset = anaconda.id.fsset + self.instPath = anaconda.rootPath + self.intf = anaconda.intf + self.dispatch = anaconda.dispatch - rc = swapInfo + rc = anaconda.id.upgradeSwapInfo self.neededSwap = 1 self.row = 0 |