diff options
-rw-r--r-- | packages.py | 6 |
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: |