Gentoo Archives: gentoo-dev

From: Aaron Bauman <bman@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-dev] [PATCH] virtualx.eclass: Append RESTRICT="!test? ( test )" by default
Date: Wed, 11 Dec 2019 16:05:01
Message-Id: 20191211160455.GB1074948@bubba.lan
In Reply to: [gentoo-dev] [PATCH] virtualx.eclass: Append RESTRICT="!test? ( test )" by default by "Michał Górny"
1 On Wed, Dec 11, 2019 at 03:58:33PM +0100, Michał Górny wrote:
2 > Append RESTRICT="!test? ( test )" in the default case when virtualx
3 > is conditional to USE=test. This fixes 440 MissingTestRestrict
4 > warnings.
5 >
6 > Signed-off-by: Michał Górny <mgorny@g.o>
7 > ---
8 > eclass/virtualx.eclass | 2 ++
9 > 1 file changed, 2 insertions(+)
10 >
11 > diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
12 > index 40eeea5463bc..6aba6bf488dd 100644
13 > --- a/eclass/virtualx.eclass
14 > +++ b/eclass/virtualx.eclass
15 > @@ -89,6 +89,8 @@ case ${VIRTUALX_REQUIRED} in
16 > fi
17 > RDEPEND=""
18 > IUSE="${VIRTUALX_REQUIRED}"
19 > + [[ ${VIRTUALX_REQUIRED} == test ]] &&
20 > + RESTRICT+=" !test? ( test )"
21 > ;;
22 > esac
23 >
24 > --
25 > 2.24.1
26 >
27 >
28
29 Acked-by: Aaron Bauman <bman@g.o>
30
31 --
32 Cheers,
33 Aaron

Attachments

File name MIME type
signature.asc application/pgp-signature