diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-09 17:19:55 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-09 17:19:55 +0000 |
commit | abe0bb8950678a95f2efa2a41f805f0f06df43b0 (patch) | |
tree | a14e53dac085189387fbefd5024245dc7da65019 | |
parent | f726c7f089857dc65cf7c8ac62eb41f498fac46c (diff) | |
download | portage-abe0bb8950678a95f2efa2a41f805f0f06df43b0.tar.gz portage-abe0bb8950678a95f2efa2a41f805f0f06df43b0.tar.bz2 portage-abe0bb8950678a95f2efa2a41f805f0f06df43b0.zip |
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
-rw-r--r-- | pym/portage/dbapi/vartree.py | 2 |
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) |