diff options
author | Mike Fulbright <msf@redhat.com> | 2001-03-16 17:26:57 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-03-16 17:26:57 +0000 |
commit | baca32aecbab83e97a6dfb8c47d0f6dbb9ac16dd (patch) | |
tree | 615bb1b9fc94c6e4449f9b831d85bcd1661a17e9 | |
parent | ccd848049fcbea02863f96e8f7d0757c972219e6 (diff) | |
download | anaconda-baca32aecbab83e97a6dfb8c47d0f6dbb9ac16dd.tar.gz anaconda-baca32aecbab83e97a6dfb8c47d0f6dbb9ac16dd.tar.xz anaconda-baca32aecbab83e97a6dfb8c47d0f6dbb9ac16dd.zip |
fix test so we don't make a 0 length swapfile, and also test to enforce a 16M buffer
-rw-r--r-- | iw/upgrade_swap_gui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iw/upgrade_swap_gui.py b/iw/upgrade_swap_gui.py index c50625872..c891ed96a 100644 --- a/iw/upgrade_swap_gui.py +++ b/iw/upgrade_swap_gui.py @@ -41,13 +41,13 @@ class UpgradeSwapWindow (InstallWindow): self.todo.upgradeFindPackages() threads_enter() return None - elif val > 2000 or val < 0: + elif val > 2000 or val < 1: threads_leave() rc = self.swapWrongSize() threads_enter() raise gui.StayOnScreen - elif (val-16) > size: + elif (val+16) > size: threads_leave() rc = self.swapTooBig() threads_enter() |