diff options
author | Erik Troan <ewt@redhat.com> | 2000-05-26 15:04:16 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-05-26 15:04:16 +0000 |
commit | 53e5298a1430e7700db2217f61e613ee1813b675 (patch) | |
tree | ffe76171d0b4d4c77f574fed8b41bf84afb681b7 /textw | |
parent | 1754b21d837ce0b23c94b7c40bb6cfd81f9147c6 (diff) | |
download | anaconda-53e5298a1430e7700db2217f61e613ee1813b675.tar.gz anaconda-53e5298a1430e7700db2217f61e613ee1813b675.tar.xz anaconda-53e5298a1430e7700db2217f61e613ee1813b675.zip |
don't allow empty lilo labels
Diffstat (limited to 'textw')
-rw-r--r-- | textw/lilo_text.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/textw/lilo_text.py b/textw/lilo_text.py index 40ea58045..8acd844fc 100644 --- a/textw/lilo_text.py +++ b/textw/lilo_text.py @@ -131,7 +131,12 @@ class LiloImagesWindow: elif (result == "ok" or result == "F12" or result == newLabel): import regex - if (regex.search (" ", newLabel.value()) != -1): + if not newLabel.value(): + rc = ButtonChoiceWindow (screen, _("Invalid Boot Label"), + _("Boot label may not be empty."), + [ _("OK") ]) + result = "" + elif (regex.search (" ", newLabel.value()) != -1): rc = ButtonChoiceWindow (screen, _("Invalid Boot Label"), _("Boot labels cannot contain " "space(s)."), |