From abe0bb8950678a95f2efa2a41f805f0f06df43b0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 9 Nov 2008 17:19:55 +0000 Subject: [PATCH] When adding parent directories to contents inside dblink._add_preserve_libs_to_contents(), account for the trailing slash on $ROOT in the while loop. svn path=/main/trunk/; revision=11836 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2