Fix breakage in owners() handling of abs paths.
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Jul 2009 21:45:00 +0000 (21:45 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Jul 2009 21:45:00 +0000 (21:45 -0000)
svn path=/main/trunk/; revision=13862

bin/portageq

index c21c783c174f2638eb911436f4c8c999d75aa26c..cf9c5f066f4628a65375dfc798ff2968b62ec779 100755 (executable)
@@ -198,7 +198,7 @@ def owners(argv):
                if is_basename:
                        files.append(f)
                else:
-                       files.append(f[len(root):])
+                       files.append(f[len(root)-1:])
 
        owners = vardb._owners.get_owners(files)