aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-05-14 21:16:46 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-05-14 21:16:46 +0100
commitc25a27d099a2214cfa3ba7d07b2363a130541820 (patch)
treeda4d3c512a61d456b0cf3568ad99b861ab03d459
parenta890dc2df1d3fbf3ce4f3dc7781a47e5952b02a8 (diff)
downloadpaludis-c25a27d099a2214cfa3ba7d07b2363a130541820.tar.gz
paludis-c25a27d099a2214cfa3ba7d07b2363a130541820.tar.xz
Needs to be transient
-rw-r--r--paludis/repositories/repository/repository_id.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/paludis/repositories/repository/repository_id.cc b/paludis/repositories/repository/repository_id.cc
index c152fcf..6172967 100644
--- a/paludis/repositories/repository/repository_id.cc
+++ b/paludis/repositories/repository/repository_id.cc
@@ -47,11 +47,14 @@ namespace paludis
const VersionSpec version;
const RepositoryRepository * const repo;
+ const std::tr1::shared_ptr<LiteralMetadataValueKey<bool> > transient_key;
+
Implementation(const RepositoryIDParams & e) :
env(e.environment()),
name(e.name()),
version("0", VersionSpecOptions()),
- repo(e.repository())
+ repo(e.repository()),
+ transient_key(new LiteralMetadataValueKey<bool>("transient", "transient", mkt_internal, true))
{
}
};
@@ -61,6 +64,7 @@ RepositoryID::RepositoryID(const RepositoryIDParams & entry) :
PrivateImplementationPattern<RepositoryID>(new Implementation<RepositoryID>(entry)),
_imp(PrivateImplementationPattern<RepositoryID>::_imp)
{
+ add_metadata_key(_imp->transient_key);
}
RepositoryID::~RepositoryID()
@@ -179,7 +183,7 @@ RepositoryID::fs_location_key() const
const std::tr1::shared_ptr<const MetadataValueKey<bool> >
RepositoryID::transient_key() const
{
- return std::tr1::shared_ptr<const MetadataValueKey<bool> >();
+ return _imp->transient_key;
}
const std::tr1::shared_ptr<const MetadataValueKey<std::tr1::shared_ptr<const PackageID> > >