aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/package_or_block_dep_spec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/resolver/package_or_block_dep_spec.cc')
-rw-r--r--paludis/resolver/package_or_block_dep_spec.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/resolver/package_or_block_dep_spec.cc b/paludis/resolver/package_or_block_dep_spec.cc
index 17add1e60..a4f992f75 100644
--- a/paludis/resolver/package_or_block_dep_spec.cc
+++ b/paludis/resolver/package_or_block_dep_spec.cc
@@ -89,6 +89,7 @@ PackageOrBlockDepSpec::serialise(Serialiser & s) const
{
w.member(SerialiserFlags<>(), "annotations_k_" + stringify(n), m->key());
w.member(SerialiserFlags<>(), "annotations_v_" + stringify(n), m->value());
+ w.member(SerialiserFlags<>(), "annotations_n_" + stringify(n), stringify(m->kind()));
w.member(SerialiserFlags<>(), "annotations_r_" + stringify(n), stringify(m->role()));
++n;
}
@@ -120,9 +121,11 @@ PackageOrBlockDepSpec::deserialise(Deserialisation & d, const std::shared_ptr<co
{
std::string key(v.member<std::string>("annotations_k_" + stringify(a)));
std::string value(v.member<std::string>("annotations_v_" + stringify(a)));
+ std::string kind(v.member<std::string>("annotations_n_" + stringify(a)));
std::string role(v.member<std::string>("annotations_r_" + stringify(a)));
annotations->add(make_named_values<DepSpecAnnotation>(
n::key() = key,
+ n::kind() = destringify<DepSpecAnnotationKind>(kind),
n::role() = destringify<DepSpecAnnotationRole>(role),
n::value() = value
));