aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_mask.cc
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-07-26 20:04:35 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-07-26 20:04:35 +0000
commit028beef56698063b848c2f02419227b8be6f4a03 (patch)
tree675a7a49105aee7d52c2189929a59b99f796fef5 /paludis/repositories/e/e_mask.cc
parent8013d621d51886e7bd51896d37bc022edc898369 (diff)
downloadpaludis-028beef56698063b848c2f02419227b8be6f4a03.tar.gz
paludis-028beef56698063b848c2f02419227b8be6f4a03.tar.xz
Expose repository and profile masks as a metadata key, currently containing the filename that the mask comes from.
Diffstat (limited to 'paludis/repositories/e/e_mask.cc')
-rw-r--r--paludis/repositories/e/e_mask.cc16
1 files changed, 12 insertions, 4 deletions
diff --git a/paludis/repositories/e/e_mask.cc b/paludis/repositories/e/e_mask.cc
index 16fcd148a..6ade0ce98 100644
--- a/paludis/repositories/e/e_mask.cc
+++ b/paludis/repositories/e/e_mask.cc
@@ -122,17 +122,19 @@ namespace paludis
{
const char key;
const std::string description;
+ const tr1::shared_ptr<const MetadataKey> mask_key;
- Implementation(const char k, const std::string & d) :
+ Implementation(const char k, const std::string & d, const tr1::shared_ptr<const MetadataKey> & m) :
key(k),
- description(d)
+ description(d),
+ mask_key(m)
{
}
};
}
-ERepositoryMask::ERepositoryMask(const char k, const std::string & d) :
- PrivateImplementationPattern<ERepositoryMask>(new Implementation<ERepositoryMask>(k, d))
+ERepositoryMask::ERepositoryMask(const char k, const std::string & d, const tr1::shared_ptr<const MetadataKey> & m) :
+ PrivateImplementationPattern<ERepositoryMask>(new Implementation<ERepositoryMask>(k, d, m))
{
}
@@ -152,3 +154,9 @@ ERepositoryMask::description() const
return _imp->description;
}
+const tr1::shared_ptr<const MetadataKey>
+ERepositoryMask::mask_key() const
+{
+ return _imp->mask_key;
+}
+