diff --git a/pisi/util.py b/pisi/util.py index b60df0ed..b6589140 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -115,7 +115,7 @@ def commonprefix(l): # but this one is necessary def subpath(a, b): "find if path a is before b in the directory tree" - return prefix(splitpath(a), splitpath(b)) + return b.startswith(a) def removepathprefix(prefix, path): "remove path prefix a from b, finding the pathname rooted at a"