commit: cebf71d0f01716909f678154b292ec46d3aeb11a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 18 15:10:10 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr 18 17:21:36 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cebf71d0
metadata/install-qa-check.d: Fix impl matching in 60python-site
Fix Python implementation matching code to special-case pypy3 rather
than generally applying a glob that caused impl of `python3.13` to match
directory for `python3.13t`.
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
metadata/install-qa-check.d/60python-site | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/metadata/install-qa-check.d/60python-site
b/metadata/install-qa-check.d/60python-site
index e4c2c875ca0f..3791fa80ecdd 100644
--- a/metadata/install-qa-check.d/60python-site
+++ b/metadata/install-qa-check.d/60python-site
@@ -54,8 +54,8 @@ python_site_check() {
local impl=${prog%/*}
impl=${impl##*/}
- # NB: using ${impl}* to catch pypy3.* for pypy3
- local pydir=( "${ED}"/usr/lib/${impl}* )
+ local pydir="${ED}"/usr/lib/${impl}
+ [[ ${impl} == pypy3 ]] && pydir="${ED}"/usr/lib/pypy3.10
[[ -d ${pydir} ]] || continue
# check for packages installing outside site-packages