aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_mask.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-26 21:22:37 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-26 21:22:37 +0000
commitdc6cdcbdc1430403fb52ad4baf859d09b5bed1c4 (patch)
tree54eb5c530f87fda06c5476e144fcab59f352dc90 /paludis/repositories/e/e_mask.cc
parent0c8eeda99a0bbef95e7729369ee293f526cd76a0 (diff)
downloadpaludis-dc6cdcbdc1430403fb52ad4baf859d09b5bed1c4.tar.gz
paludis-dc6cdcbdc1430403fb52ad4baf859d09b5bed1c4.tar.xz
Put repo mask info directly in the mask
Diffstat (limited to 'paludis/repositories/e/e_mask.cc')
-rw-r--r--paludis/repositories/e/e_mask.cc31
1 files changed, 24 insertions, 7 deletions
diff --git a/paludis/repositories/e/e_mask.cc b/paludis/repositories/e/e_mask.cc
index a2ff30ac8..93662169c 100644
--- a/paludis/repositories/e/e_mask.cc
+++ b/paludis/repositories/e/e_mask.cc
@@ -143,19 +143,24 @@ namespace paludis
{
const char key;
const std::string description;
- const std::string mask_key_name;
+ const std::string comment;
+ const std::string token;
+ const FSPath mask_file;
- Imp(const char k, const std::string & d, const std::string & m) :
+ Imp(const char k, const std::string & d, const std::string & c, const std::string & t, const FSPath & f) :
key(k),
description(d),
- mask_key_name(m)
+ comment(c),
+ token(t),
+ mask_file(f)
{
}
};
}
-ERepositoryMask::ERepositoryMask(const char k, const std::string & d, const std::string & m) :
- _imp(k, d, m)
+ERepositoryMask::ERepositoryMask(const char k, const std::string & d, const std::string & c,
+ const std::string & t, const FSPath & f) :
+ _imp(k, d, c, t, f)
{
}
@@ -176,9 +181,21 @@ ERepositoryMask::description() const
}
const std::string
-ERepositoryMask::mask_key_name() const
+ERepositoryMask::comment() const
{
- return _imp->mask_key_name;
+ return _imp->comment;
+}
+
+const std::string
+ERepositoryMask::token() const
+{
+ return _imp->token;
+}
+
+const FSPath
+ERepositoryMask::mask_file() const
+{
+ return _imp->mask_file;
}
namespace