From 7ba607a6f7929db49d8ee7db3259a7b82590c178 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 28 Sep 2009 01:50:14 +0000 Subject: [PATCH] Fix breakage in file path -> package lookup code. svn path=/main/trunk/; revision=14455 --- pym/_emerge/actions.py | 2 +- 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 \ -- 2.26.2