diff options
-rw-r--r-- | pym/_emerge/actions.py | 2 | ||||
-rw-r--r-- | pym/_emerge/depgraph.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index b33fb5079..34ef1a683 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2271,7 +2271,7 @@ def action_uninstall(settings, trees, ldpath_mtimes, for x in lookup_owners: if not search_for_multiple and os.path.isdir(x): search_for_multiple = True - relative_paths.append(x[len(root):]) + relative_paths.append(x[len(root)-1:]) owners = set() for pkg, relative_path in \ diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index deaba1955..9b4c0b6dd 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1578,7 +1578,7 @@ class depgraph(object): for x in lookup_owners: if not search_for_multiple and os.path.isdir(x): search_for_multiple = True - relative_paths.append(x[len(myroot):]) + relative_paths.append(x[len(myroot)-1:]) owners = set() for pkg, relative_path in \ |