summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-09-22 08:59:06 +0200
committerMichał Górny <mgorny@gentoo.org>2020-09-22 09:00:39 +0200
commit9652aac4adf41834b6afabcc8a09b80c4e598592 (patch)
tree1cbee4956a13b91b7aa190114c341bb9a16342a5 /metadata
parentinstall-qa-check.d: Fix reporting integrity-errors in DUS check (diff)
downloadgentoo-9652aac4adf41834b6afabcc8a09b80c4e598592.tar.gz
gentoo-9652aac4adf41834b6afabcc8a09b80c4e598592.tar.bz2
gentoo-9652aac4adf41834b6afabcc8a09b80c4e598592.zip
install-qa-check.d: Allow bdepend/rdepend mix in DUS check
Allow DISTUTILS_USE_SETUPTOOLS guess to partially evaluate to bdepend and partially to rdepend. That is the case in dev-python/hypothesis that installs CLI tools for CPython but not PyPy3. In this case, rdepend is the expected value. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'metadata')
-rw-r--r--metadata/install-qa-check.d/60distutils-use-setuptools11
1 files changed, 9 insertions, 2 deletions
diff --git a/metadata/install-qa-check.d/60distutils-use-setuptools b/metadata/install-qa-check.d/60distutils-use-setuptools
index cc3434f586c7..551cb0f0b6cb 100644
--- a/metadata/install-qa-check.d/60distutils-use-setuptools
+++ b/metadata/install-qa-check.d/60distutils-use-setuptools
@@ -26,8 +26,15 @@ get_expected_distutils_use_setuptools() {
fi
if [[ ${expected} && ${new_expected} != ${expected} ]]; then
- integrity_error_new=${new_expected}
- return 1
+ if [[ ${expected}${new_expected} == [br]depend[br]depend ]]
+ then
+ # packages can have scripts that are installed
+ # conditionally to implementation
+ expected=rdepend
+ else
+ integrity_error_new=${new_expected}
+ return 1
+ fi
else
expected=${new_expected}
fi