aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-05 15:54:30 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-05 15:42:08 +0000
commit91c7579bb8253168f2d6e82b2949c71222254a72 (patch)
tree5dffc4dd51a54566b4a9666e2d36c03ffdc5b378
parenteb990ebbb519b7363e2a4e9d999339677743cd3d (diff)
downloadpaludis-91c7579bb8253168f2d6e82b2949c71222254a72.tar.gz
paludis-91c7579bb8253168f2d6e82b2949c71222254a72.tar.xz
Fix lock scope
-rw-r--r--paludis/repositories/e/ebuild_id.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/repositories/e/ebuild_id.cc b/paludis/repositories/e/ebuild_id.cc
index 1022b2f..5feeed5 100644
--- a/paludis/repositories/e/ebuild_id.cc
+++ b/paludis/repositories/e/ebuild_id.cc
@@ -690,11 +690,11 @@ EbuildID::inherited_key() const
const std::tr1::shared_ptr<const MetadataValueKey<FSEntry> >
EbuildID::fs_location_key() const
{
+ Lock l(_imp->mutex);
+
// Avoid loading whole metadata
if (! _imp->fs_location)
{
- Lock l(_imp->mutex);
-
_imp->fs_location.reset(new LiteralMetadataValueKey<FSEntry> ("EBUILD", "Ebuild Location", mkt_internal, _imp->ebuild));
add_metadata_key(_imp->fs_location);
}