aboutsummaryrefslogtreecommitdiff
path: root/paludis/dep_spec.cc
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2012-03-02 21:11:31 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2012-03-03 19:57:19 +0000
commit27e14ae3a2bf90e8e2fd285710442373fca5739c (patch)
tree40bc2f4ec46d93b03499ed03c90f1cad94f7f4c5 /paludis/dep_spec.cc
parentf3b562877c5345fb403261e2a1d3d68b83de7967 (diff)
downloadpaludis-27e14ae3a2bf90e8e2fd285710442373fca5739c.tar.gz
paludis-27e14ae3a2bf90e8e2fd285710442373fca5739c.tar.xz
Forward BlockDepSpec annotations to the contained PackageDepSpec
Doesn't really make much sense for them to have separate annotations, and merging them like this means that the blocker's annotations are visible to match_package, which is potentially useful.
Diffstat (limited to 'paludis/dep_spec.cc')
-rw-r--r--paludis/dep_spec.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/paludis/dep_spec.cc b/paludis/dep_spec.cc
index 10482c889..f6acb350b 100644
--- a/paludis/dep_spec.cc
+++ b/paludis/dep_spec.cc
@@ -224,6 +224,18 @@ BlockDepSpec::BlockDepSpec(const BlockDepSpec & other) :
set_annotations(other.maybe_annotations());
}
+const std::shared_ptr<const DepSpecAnnotations>
+BlockDepSpec::maybe_annotations() const
+{
+ return _spec.maybe_annotations();
+}
+
+void
+BlockDepSpec::set_annotations(const std::shared_ptr<const DepSpecAnnotations> & anno)
+{
+ _spec.set_annotations(anno);
+}
+
std::ostream &
paludis::operator<< (std::ostream & s, const PlainTextDepSpec & a)
{