Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 4/4] install-qa-check.d: Make DUS aware of gui_scripts
Date: Sun, 18 Apr 2021 12:36:28
Message-Id: 20210418123454.35060-5-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/4] install-qa-check.d/60distutils-use-setuptools future-proof and fixes by "Michał Górny"
1 Make DISTUTILS_USE_SETUPTOOLS check aware of gui_scripts in addition
2 to console_scripts. Thanks to Arfrever for reporting.
3
4 Signed-off-by: Michał Górny <mgorny@g.o>
5 ---
6 metadata/install-qa-check.d/60distutils-use-setuptools | 2 +-
7 1 file changed, 1 insertion(+), 1 deletion(-)
8
9 diff --git a/metadata/install-qa-check.d/60distutils-use-setuptools b/metadata/install-qa-check.d/60distutils-use-setuptools
10 index 69164608fcaa..d5b9f87a21a1 100644
11 --- a/metadata/install-qa-check.d/60distutils-use-setuptools
12 +++ b/metadata/install-qa-check.d/60distutils-use-setuptools
13 @@ -30,7 +30,7 @@ distutils_use_setuptools_check() {
14 then
15 # explicit *unconditional* rdepend in package metadata
16 new_expected=rdepend
17 - elif grep -q -s -F '[console_scripts]' \
18 + elif grep -q -s '\[\(console\|gui\)_scripts\]' \
19 "${egg}"/entry_points.txt
20 then
21 new_expected=entry-point
22 --
23 2.31.1