diff options
Diffstat (limited to 'Lib/packaging/database.py')
-rw-r--r-- | Lib/packaging/database.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/packaging/database.py b/Lib/packaging/database.py index c733b7af67..b606db6b05 100644 --- a/Lib/packaging/database.py +++ b/Lib/packaging/database.py @@ -263,7 +263,9 @@ class Distribution: :returns: iterator of paths """ for path, checksum, size in self._get_records(local): - yield path + # XXX add separator or use real relpath algo + if path.startswith(self.path): + yield path def __eq__(self, other): return isinstance(other, Distribution) and self.path == other.path |