aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-10-25 20:09:29 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2008-10-25 20:09:29 +0100
commit2775c7df7ac65dd9524924cf7d7bb0227956356c (patch)
tree71335ba8d4b3fe51e9b7e23f611013544b3ce25d
parent649c5a3ffc557f296275e65b60743ece2cc0e6fe (diff)
downloadpaludis-2775c7df7ac65dd9524924cf7d7bb0227956356c.tar.gz
paludis-2775c7df7ac65dd9524924cf7d7bb0227956356c.tar.xz
Fix RESTRICT=test
-rw-r--r--paludis/repositories/e/ebuild_entries.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild_entries.cc b/paludis/repositories/e/ebuild_entries.cc
index 543f168..424beef 100644
--- a/paludis/repositories/e/ebuild_entries.cc
+++ b/paludis/repositories/e/ebuild_entries.cc
@@ -671,6 +671,9 @@ EbuildEntries::install(const std::tr1::shared_ptr<const ERepositoryID> & id,
{
if (phase->option("optional_tests"))
{
+ if (test_restrict)
+ continue;
+
std::tr1::shared_ptr<const ChoiceValue> choice(id->choices_key()->value()->find_by_name_with_prefix(
ELikeOptionalTestsChoiceValue::canonical_name_with_prefix()));
if (choice && ! choice->enabled())
@@ -678,6 +681,9 @@ EbuildEntries::install(const std::tr1::shared_ptr<const ERepositoryID> & id,
}
else if (phase->option("recommended_tests"))
{
+ if (test_restrict)
+ continue;
+
std::tr1::shared_ptr<const ChoiceValue> choice(id->choices_key()->value()->find_by_name_with_prefix(
ELikeRecommendedTestsChoiceValue::canonical_name_with_prefix()));
if (choice && ! choice->enabled())