summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-01-03 07:29:27 +0000
committerJeremy Katz <katzj@redhat.com>2003-01-03 07:29:27 +0000
commit2d7b5c096c7218d96b4da540d26dd7318edaf7c5 (patch)
tree37e0c622e545d528a9575d97a47a4b61271f6236
parentc2880f36f348f1fb73af75565e6ce9d7d30cbc91 (diff)
downloadanaconda-2d7b5c096c7218d96b4da540d26dd7318edaf7c5.tar.gz
anaconda-2d7b5c096c7218d96b4da540d26dd7318edaf7c5.tar.xz
anaconda-2d7b5c096c7218d96b4da540d26dd7318edaf7c5.zip
make sure mount exists (#78591)
-rw-r--r--packages.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages.py b/packages.py
index edb32fd65..8a9e777fd 100644
--- a/packages.py
+++ b/packages.py
@@ -786,10 +786,10 @@ def doInstall(method, id, intf, instPath):
nodeprob = rpm.RPMPROB_DISKNODES
for (descr, (type, mount, need)) in problems:
- if mount.startswith(instPath):
+ if mount and mount.startswith(instPath):
mount = mount[len(instPath):]
- if not mount:
- mount = '/'
+ if not mount:
+ mount = '/'
if type == rpm.RPMPROB_DISKSPACE:
if spaceneeded.has_key (mount) and spaceneeded[mount] < need: