diff options
Diffstat (limited to 'metadata/install-qa-check.d')
-rw-r--r-- | metadata/install-qa-check.d/60distutils-use-setuptools | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/metadata/install-qa-check.d/60distutils-use-setuptools b/metadata/install-qa-check.d/60distutils-use-setuptools index 8970a6ab9989..61209302ef3e 100644 --- a/metadata/install-qa-check.d/60distutils-use-setuptools +++ b/metadata/install-qa-check.d/60distutils-use-setuptools @@ -51,7 +51,10 @@ distutils_use_setuptools_check() { eerror "This could mean the package has bad conditions:" eerror "https://dev.gentoo.org/~mgorny/python-guide/distutils.html#conditional-distutils-setuptools-use-in-packages" eerror "Please report a bug about this and CC python@" - elif [[ ${#expected[@]} -gt 0 ]]; then + else + # if we did not find anything, also assume 'no' is desired, + # we do not want the setuptools dep + [[ ${#expected[@]} -eq 0 ]] && expected=( no ) # *+rdepend=rdepend has rdepend "${expected[@]}" && expected=( rdepend ) # for the time being, entry points imply rdepend |