diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-12-11 15:57:22 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-12-11 19:43:38 +0100 |
commit | a66d68c5476a9aeb8a74442e11d004ce48a7c625 (patch) | |
tree | 49622947f132a68e68e183038304038eee37c649 /eclass | |
parent | app-crypt/certbot: fix dep on acme (diff) | |
download | gentoo-a66d68c5476a9aeb8a74442e11d004ce48a7c625.tar.gz gentoo-a66d68c5476a9aeb8a74442e11d004ce48a7c625.tar.bz2 gentoo-a66d68c5476a9aeb8a74442e11d004ce48a7c625.zip |
virtualx.eclass: Append RESTRICT="!test? ( test )" by default
Append RESTRICT="!test? ( test )" in the default case when virtualx
is conditional to USE=test. This fixes 440 MissingTestRestrict
warnings.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/virtualx.eclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass index 40eeea5463bc..6aba6bf488dd 100644 --- a/eclass/virtualx.eclass +++ b/eclass/virtualx.eclass @@ -89,6 +89,8 @@ case ${VIRTUALX_REQUIRED} in fi RDEPEND="" IUSE="${VIRTUALX_REQUIRED}" + [[ ${VIRTUALX_REQUIRED} == test ]] && + RESTRICT+=" !test? ( test )" ;; esac |