summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metadata/install-qa-check.d/60distutils-use-setuptools6
1 files changed, 3 insertions, 3 deletions
diff --git a/metadata/install-qa-check.d/60distutils-use-setuptools b/metadata/install-qa-check.d/60distutils-use-setuptools
index 698d832800f7..097c7dc8e5ae 100644
--- a/metadata/install-qa-check.d/60distutils-use-setuptools
+++ b/metadata/install-qa-check.d/60distutils-use-setuptools
@@ -29,10 +29,10 @@ distutils_use_setuptools_check() {
then
# entry_points == we need rdepend
new_expected=rdepend
- elif grep -q -E -s '^setuptools' \
- "${egg}"/requires.txt
+ elif grep -q -s '^setuptools' \
+ <(sed -e '/^\[/,$d' "${egg}"/requires.txt)
then
- # explicit rdepend in package metadata
+ # explicit *unconditional* rdepend in package metadata
new_expected=rdepend
else
new_expected=bdepend