aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-13 13:34:36 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-15 00:29:38 +0100
commitb58cf4a0f37f9477cdd3426b50583c1ff90dd0bd (patch)
tree943fe4051bd7e67c6e1281bc248a4c4c2041e036
parent2a5a6088b7e0b5feeba0ef9b5f0690ae0113c673 (diff)
downloadpaludis-b58cf4a0f37f9477cdd3426b50583c1ff90dd0bd.tar.gz
paludis-b58cf4a0f37f9477cdd3426b50583c1ff90dd0bd.tar.xz
Don't cache provides
-rw-r--r--paludis/repositories/e/e_key.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/paludis/repositories/e/e_key.cc b/paludis/repositories/e/e_key.cc
index dd7a5a2..21797fe 100644
--- a/paludis/repositories/e/e_key.cc
+++ b/paludis/repositories/e/e_key.cc
@@ -650,8 +650,6 @@ namespace paludis
{
const Environment * const env;
const std::string string_value;
- mutable Mutex value_mutex;
- mutable std::shared_ptr<const ProvideSpecTree> value;
const std::shared_ptr<const EAPIMetadataVariable> variable;
const std::shared_ptr<const EAPI> eapi;
@@ -690,13 +688,8 @@ EProvideKey::~EProvideKey()
const std::shared_ptr<const ProvideSpecTree>
EProvideKey::parse_value() const
{
- Lock l(_imp->value_mutex);
- if (_imp->value)
- return _imp->value;
-
Context context("When parsing metadata key '" + raw_name() + "':");
- _imp->value = parse_provide(_imp->string_value, _imp->env, *_imp->eapi, _imp->is_installed);
- return _imp->value;
+ return parse_provide(_imp->string_value, _imp->env, *_imp->eapi, _imp->is_installed);
}
const std::string