Fix breakage in file path -> package lookup code.
authorZac Medico <zmedico@gentoo.org>
Mon, 28 Sep 2009 01:50:14 +0000 (01:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 28 Sep 2009 01:50:14 +0000 (01:50 -0000)
svn path=/main/trunk/; revision=14455

pym/_emerge/actions.py
pym/_emerge/depgraph.py

index b33fb5079afff2f43a90bc6c58fee62d63f3650a..34ef1a683bc7be8a707f6f01484ce8e57c60cc57 100644 (file)
@@ -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 \
index deaba19550e5b2d7879388c48090066c8bf1a64d..9b4c0b6dd3127a9615c0b78c4523fe225e758c3f 100644 (file)
@@ -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 \