summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-01-05 17:28:59 +0100
committerMichał Górny <mgorny@gentoo.org>2024-01-08 15:48:20 +0100
commite7fc78a3bab8b81253d267dc86886d44ea9c5e1b (patch)
treecaf1cc248f493e8e2b6d6267707d1834b20bcc99 /metadata/install-qa-check.d
parentinstall-qa-check.d/60python-site: Add check for wrong libdir (diff)
downloadgentoo-e7fc78a3bab8b81253d267dc86886d44ea9c5e1b.tar.gz
gentoo-e7fc78a3bab8b81253d267dc86886d44ea9c5e1b.tar.bz2
gentoo-e7fc78a3bab8b81253d267dc86886d44ea9c5e1b.zip
install-qa-check.d/60python-site: Check for UNKNOWN package name
Bug: https://bugs.gentoo.org/836765 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'metadata/install-qa-check.d')
-rw-r--r--metadata/install-qa-check.d/60python-site6
1 files changed, 3 insertions, 3 deletions
diff --git a/metadata/install-qa-check.d/60python-site b/metadata/install-qa-check.d/60python-site
index ffc06edf0960..323539107900 100644
--- a/metadata/install-qa-check.d/60python-site
+++ b/metadata/install-qa-check.d/60python-site
@@ -55,9 +55,9 @@ python_site_check() {
done < <(
find "${sitedir}" -maxdepth 1 '(' \
-name '*-0.0.0.dist-info' -o \
- -name '*-UNKNOWN.dist-info' -o \
+ -name '*UNKNOWN*.dist-info' -o \
-name '*-0.0.0.egg-info' -o \
- -name '*-UNKNOWN.egg-info' \
+ -name '*UNKNOWN*.egg-info' \
')' -print0
)
@@ -170,7 +170,7 @@ python_site_check() {
if [[ ${bad_versions[@]} ]]; then
eqawarn
eqawarn "QA Notice: The following Python packages were installed with"
- eqawarn "invalid/suspicious versions in the site-packages directory:"
+ eqawarn "invalid/suspicious names or versions in the site-packages directory:"
eqawarn
eqatag -v python-site.bad_version "${bad_versions[@]}"
fi