diff options
author | Mike Fulbright <msf@redhat.com> | 2002-02-13 19:23:02 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-02-13 19:23:02 +0000 |
commit | 3cc5e61f10ba9bbe6539539cecedfadb795199e0 (patch) | |
tree | f7ab5c4534736213a3d3ff466c3a87ccf3660c95 /partitioning.py | |
parent | f59492ecbce4f65732dcb65da0dc072eba2bf8ed (diff) | |
download | anaconda-3cc5e61f10ba9bbe6539539cecedfadb795199e0.tar.gz anaconda-3cc5e61f10ba9bbe6539539cecedfadb795199e0.tar.xz anaconda-3cc5e61f10ba9bbe6539539cecedfadb795199e0.zip |
no spaces in mount point for you\!
Diffstat (limited to 'partitioning.py')
-rw-r--r-- | partitioning.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/partitioning.py b/partitioning.py index bc939d252..c8f182e68 100644 --- a/partitioning.py +++ b/partitioning.py @@ -216,11 +216,13 @@ def sanityCheckMountPoint(mntpt, fstype, reqtype): else: if mntpt[0] != '/' or (len(mntpt) > 1 and mntpt[-1:] == '/'): passed = 0 + elif string.find(mntpt, ' ') > -1: + passed = 0 if not passed: return _("The mount point is invalid. Mount points must start " "with '/' and cannot end with '/', and must contain " - "printable characters.") + "printable characters and no spaces.") else: return None else: |