summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-08-03 19:56:04 +0100
committerSam James <sam@gentoo.org>2022-08-03 19:56:04 +0100
commitac3b18d6dd5d8a7851691c308a6bae77f3a750a6 (patch)
tree3c969f2b28be738a42cbc3250c7789d9b6e78997 /metadata/install-qa-check.d
parentsys-fs/zfs-kmod: keyword 2.1.5-r1 (diff)
downloadgentoo-ac3b18d6dd5d8a7851691c308a6bae77f3a750a6.tar.gz
gentoo-ac3b18d6dd5d8a7851691c308a6bae77f3a750a6.tar.bz2
gentoo-ac3b18d6dd5d8a7851691c308a6bae77f3a750a6.zip
metadata/install-qa-check.d: only check images w/ site-packages
Avoid noise on all merges even if no Python files installed. No need to use siteimpl function as > Python 2.7 (and .. 3.6? 3.7?) it's all standard anyway. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'metadata/install-qa-check.d')
-rw-r--r--metadata/install-qa-check.d/60python-pyc3
1 files changed, 3 insertions, 0 deletions
diff --git a/metadata/install-qa-check.d/60python-pyc b/metadata/install-qa-check.d/60python-pyc
index f2d5ff3452dd..4679070328c0 100644
--- a/metadata/install-qa-check.d/60python-pyc
+++ b/metadata/install-qa-check.d/60python-pyc
@@ -24,6 +24,9 @@ python_pyc_check() {
for prog in "${progs[@]}"; do
local impl=${prog%/*}
impl=${impl##*/}
+
+ [[ -d "${ED}"/usr/lib/${impl}/site-packages ]] || continue
+
einfo "Verifying compiled files for ${impl}"
local kind pyc py
while IFS=: read -r kind pyc py extra; do