diff options
author | 2011-04-13 12:54:46 +0100 | |
---|---|---|
committer | 2011-04-15 00:29:37 +0100 | |
commit | 9b378e961262ed38aa8772de4163b1d12d28e9ff (patch) | |
tree | d2ced8bfee19c3e95cd53f233575d8ab58153e73 | |
parent | 578faea7b1b2749f70c29f5f7102a1ebf7ef147a (diff) | |
download | paludis-9b378e961262ed38aa8772de4163b1d12d28e9ff.tar.gz paludis-9b378e961262ed38aa8772de4163b1d12d28e9ff.tar.xz |
Don't cache dependencies
-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 5d5f9ee3c..df97bf431 100644 --- a/paludis/repositories/e/e_key.cc +++ b/paludis/repositories/e/e_key.cc @@ -69,8 +69,6 @@ namespace paludis const Environment * const env; const std::shared_ptr<const ERepositoryID> id; const std::string string_value; - mutable Mutex value_mutex; - mutable std::shared_ptr<const DependencySpecTree> value; const std::shared_ptr<const DependenciesLabelSequence> labels; const std::string raw_name; @@ -110,13 +108,8 @@ EDependenciesKey::~EDependenciesKey() const std::shared_ptr<const DependencySpecTree> EDependenciesKey::parse_value() const { - Lock l(_imp->value_mutex); - if (_imp->value) - return _imp->value; - Context context("When parsing metadata key '" + raw_name() + "' from '" + stringify(*_imp->id) + "':"); - _imp->value = parse_depend(_imp->string_value, _imp->env, *_imp->id->eapi(), _imp->id->is_installed()); - return _imp->value; + return parse_depend(_imp->string_value, _imp->env, *_imp->id->eapi(), _imp->id->is_installed()); } const std::shared_ptr<const DependenciesLabelSequence> |