diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-04-18 17:10:10 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-04-18 19:21:36 +0200 |
| commit | cebf71d0f01716909f678154b292ec46d3aeb11a (patch) | |
| tree | 31b3ca6eb7f548826e2008aae18e764701869307 /metadata/install-qa-check.d/60python-site | |
| parent | ef6fafaa86ed588b302021edd681885b702f5434 (diff) | |
| download | gentoo-cebf71d0f01716909f678154b292ec46d3aeb11a.tar.gz gentoo-cebf71d0f01716909f678154b292ec46d3aeb11a.tar.bz2 gentoo-cebf71d0f01716909f678154b292ec46d3aeb11a.zip | |
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@gentoo.org>
Diffstat (limited to 'metadata/install-qa-check.d/60python-site')
| -rw-r--r-- | metadata/install-qa-check.d/60python-site | 4 |
1 files 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 |
