Forbid `lib`, `$(get_libdir)` and `usr` as package names, to catch
accidentally duplicating sitedir as prefix.

Bug: https://bugs.gentoo.org/618134
Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
 metadata/install-qa-check.d/60python-site | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/metadata/install-qa-check.d/60python-site 
b/metadata/install-qa-check.d/60python-site
index a54dda53a454..3fd697605a70 100644
--- a/metadata/install-qa-check.d/60python-site
+++ b/metadata/install-qa-check.d/60python-site
@@ -15,6 +15,8 @@ python_site_check() {
                # NB: setuptools/discovery.py is a good source of ideas
                benchmark benchmarks dist doc docs examples scripts tasks
                test tests tools util utils
+               # catch double-prefix installs, e.g. 
https://bugs.gentoo.org/618134
+               lib $(get_libdir) usr
                .pytest_cache .hypothesis _trial_temp
        )
 
-- 
2.43.0


Reply via email to