diff options
author | 2011-04-13 13:34:36 +0100 | |
---|---|---|
committer | 2011-04-15 00:29:38 +0100 | |
commit | b58cf4a0f37f9477cdd3426b50583c1ff90dd0bd (patch) | |
tree | 943fe4051bd7e67c6e1281bc248a4c4c2041e036 | |
parent | 2a5a6088b7e0b5feeba0ef9b5f0690ae0113c673 (diff) | |
download | paludis-b58cf4a0f37f9477cdd3426b50583c1ff90dd0bd.tar.gz paludis-b58cf4a0f37f9477cdd3426b50583c1ff90dd0bd.tar.xz |
Don't cache provides
-rw-r--r-- | paludis/repositories/e/e_key.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/paludis/repositories/e/e_key.cc b/paludis/repositories/e/e_key.cc index dd7a5a21f..21797fef6 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 |