commit: 9299e432898fbac084312c7766b660955b1041b7 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Oct 17 14:21:09 2020 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Oct 17 19:01:22 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9299e432
install-qa-check.d/60distutils...: silence requires.txt error Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> metadata/install-qa-check.d/60distutils-use-setuptools | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metadata/install-qa-check.d/60distutils-use-setuptools b/metadata/install-qa-check.d/60distutils-use-setuptools index 097c7dc8e5a..3b9523fcdab 100644 --- a/metadata/install-qa-check.d/60distutils-use-setuptools +++ b/metadata/install-qa-check.d/60distutils-use-setuptools @@ -29,7 +29,8 @@ distutils_use_setuptools_check() { then # entry_points == we need rdepend new_expected=rdepend - elif grep -q -s '^setuptools' \ + elif [[ -f ${egg}/requires.txt ]] && + grep -q -s '^setuptools' \ <(sed -e '/^\[/,$d' "${egg}"/requires.txt) then # explicit *unconditional* rdepend in package metadata