* [gentoo-dev] [PATCH] virtualx.eclass: Append RESTRICT="!test? ( test )" by default
@ 2019-12-11 14:58 99% Michał Górny
0 siblings, 0 replies; 1+ results
From: Michał Górny @ 2019-12-11 14:58 UTC (permalink / raw
To: gentoo-dev; +Cc: Michał Górny
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>
---
eclass/virtualx.eclass | 2 ++
1 file changed, 2 insertions(+)
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
--
2.24.1
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-12-11 14:58 99% [gentoo-dev] [PATCH] virtualx.eclass: Append RESTRICT="!test? ( test )" by default Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox