]> granicus.if.org Git - python/commit
Fix packaging.database.Distribution.list_distinfo_files (#12785).
authorÉric Araujo <merwok@netwok.org>
Thu, 15 Sep 2011 16:18:51 +0000 (18:18 +0200)
committerÉric Araujo <merwok@netwok.org>
Thu, 15 Sep 2011 16:18:51 +0000 (18:18 +0200)
commit37ccd6f794539e0678b7a7ad938e571cc73e106c
tree0cd580cc92f8921801406a44eb94ff52eb85d852
parent86ca04ccc72820b3233f0010ad4c6f91208a7e18
Fix packaging.database.Distribution.list_distinfo_files (#12785).

This method was supposed to return only the file under the dist-info
directory, but it actually returned all installed files.

The tests didn’t catch this because they were flawed; I updated them.
Thanks to Nadeem Vawda and Jeremy Kloth for testing.

As a bonus, the removal of os.path.relpath use should also fix the
Windows buildbots.
Lib/packaging/database.py
Lib/packaging/tests/test_database.py