aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-05 01:34:25 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-05 01:34:25 +0000
commit0d6e6c165f36f26f35e92d12440079cadfbdb020 (patch)
tree31e352dfe6c7a8286a7c195cad9987214ce4642b
parent0f9b6d19899ed8465d485d9c5632b8c08af5c8a0 (diff)
downloadpaludis-0d6e6c165f36f26f35e92d12440079cadfbdb020.tar.gz
paludis-0d6e6c165f36f26f35e92d12440079cadfbdb020.tar.xz
In test environment, use flags whose name contains the string 'enabled' are enabled.
-rw-r--r--paludis/test_environment.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/test_environment.cc b/paludis/test_environment.cc
index 68e314c..6933b34 100644
--- a/paludis/test_environment.cc
+++ b/paludis/test_environment.cc
@@ -28,9 +28,9 @@ TestEnvironment::TestEnvironment() :
}
bool
-TestEnvironment::query_use(const UseFlagName &, const PackageDatabaseEntry *) const
+TestEnvironment::query_use(const UseFlagName & u, const PackageDatabaseEntry *) const
{
- return false;
+ return (std::string::npos != u.data().find("enabled"));
}
bool