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] virtualx.eclass: Append RESTRICT="!test? ( test )" by default
Date: Wed, 11 Dec 2019 14:59:05
Message-Id: 20191211145833.782128-1-mgorny@gentoo.org
1 Append RESTRICT="!test? ( test )" in the default case when virtualx
2 is conditional to USE=test. This fixes 440 MissingTestRestrict
3 warnings.
4
5 Signed-off-by: Michał Górny <mgorny@g.o>
6 ---
7 eclass/virtualx.eclass | 2 ++
8 1 file changed, 2 insertions(+)
9
10 diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
11 index 40eeea5463bc..6aba6bf488dd 100644
12 --- a/eclass/virtualx.eclass
13 +++ b/eclass/virtualx.eclass
14 @@ -89,6 +89,8 @@ case ${VIRTUALX_REQUIRED} in
15 fi
16 RDEPEND=""
17 IUSE="${VIRTUALX_REQUIRED}"
18 + [[ ${VIRTUALX_REQUIRED} == test ]] &&
19 + RESTRICT+=" !test? ( test )"
20 ;;
21 esac
22
23 --
24 2.24.1

Replies