summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index d2a123934..418624598 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -2592,7 +2592,7 @@ class dblink(object):
showMessage(">>> needed %s %s\n" % (obj_type, f_abs))
# Add parent directories to contents if necessary.
parent_dir = os.path.dirname(f_abs)
- while parent_dir != root:
+ while len(parent_dir) > len(root):
new_contents[parent_dir] = ["dir"]
prev = parent_dir
parent_dir = os.path.dirname(parent_dir)