aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2011-09-19 22:41:51 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2011-09-19 22:41:51 +0100
commitcfaba3db04b5b20baef73fbb2e373773f0034a96 (patch)
treecddf95b1074a0f38ba6f0a42245cce953e8663fe
parent7d101615917b9a8f011b9841409c455c0732c885 (diff)
downloadpaludis-cfaba3db04b5b20baef73fbb2e373773f0034a96.tar.gz
paludis-cfaba3db04b5b20baef73fbb2e373773f0034a96.tar.xz
Fix backwards logic for masking build_options: *_tests if RESTRICTed
-rw-r--r--paludis/repositories/e/ebuild_id.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild_id.cc b/paludis/repositories/e/ebuild_id.cc
index 5790655..3fd6154 100644
--- a/paludis/repositories/e/ebuild_id.cc
+++ b/paludis/repositories/e/ebuild_id.cc
@@ -1576,7 +1576,7 @@ EbuildID::add_build_options(const std::shared_ptr<Choices> & choices) const
{
UnconditionalRestrictFinder f;
restrict_key()->parse_value()->top()->accept(f);
- mask_tests = f.s.end() == f.s.find("test");
+ mask_tests = f.s.end() != f.s.find("test");
may_be_unrestricted_strip = f.s.end() == f.s.find("strip");
}