summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-12-11 15:57:22 +0100
committerMichał Górny <mgorny@gentoo.org>2019-12-11 19:43:38 +0100
commita66d68c5476a9aeb8a74442e11d004ce48a7c625 (patch)
tree49622947f132a68e68e183038304038eee37c649
parentapp-crypt/certbot: fix dep on acme (diff)
downloadgentoo-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>
-rw-r--r--eclass/virtualx.eclass2
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