summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorbfox <bfox>2001-03-13 00:37:24 +0000
committerbfox <bfox>2001-03-13 00:37:24 +0000
commit9d4a2ba23761101a0a1cb91f09b5cad04cc1107d (patch)
treeedac98b15363f8b2f08b87c33ac3f1a98cfc912c /fstab.py
parent40a57c462d1d0945b8f86aa792c2ae487101b345 (diff)
downloadanaconda-9d4a2ba23761101a0a1cb91f09b5cad04cc1107d.tar.gz
anaconda-9d4a2ba23761101a0a1cb91f09b5cad04cc1107d.tar.xz
anaconda-9d4a2ba23761101a0a1cb91f09b5cad04cc1107d.zip
commented out some message window code that seems to break GUI mode in swap upgrade window
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/fstab.py b/fstab.py
index b15235d14..16922d46e 100644
--- a/fstab.py
+++ b/fstab.py
@@ -489,8 +489,11 @@ class Fstab:
if swaps.has_key(file): continue
if not os.access(file, os.R_OK):
- isys.ddfile(file, size, (progressWindow, _("Swap Space"),
- _("Creating swap space...")))
+# isys.ddfile(file, size, (progressWindow, _("Swap Space"),
+# _("Creating swap space...")))
+
+ isys.ddfile(file, size)
+
iutil.execWithRedirect ("/usr/sbin/mkswap",
[ "mkswap", '-v1', file ],
@@ -504,17 +507,18 @@ class Fstab:
isys.makeDevInode(device, file)
if formatThisSwap:
- w = self.waitWindow(_("Formatting"),
- _("Formatting swap space..."))
+# bfox - add these commented out lines back in at some point and make it work with GUI mode
+# w = self.waitWindow(_("Formatting"),
+# _("Formatting swap space..."))
rc = iutil.execWithRedirect ("/usr/sbin/mkswap",
[ "mkswap", '-v1', file ],
stdout = None, stderr = None,
searchPath = 1)
- w.pop()
+# w.pop()
if rc:
- self.messageWindow(_("Error"), _("Error creating swap on device ") + file)
+# self.messageWindow(_("Error"), _("Error creating swap on device ") + file)
raise ValueError
else:
isys.swapon (file)