aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-27 16:50:28 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-27 16:50:28 +0100
commitfffe19b9ce7e93f0772897f38b3fecc3dfccb684 (patch)
tree2758a646fb44112a8fd73d6fe6c2de064ead74a0
parentd5fd2400283fe5bea470078012d3b4f13a2e8155 (diff)
downloadpaludis-fffe19b9ce7e93f0772897f38b3fecc3dfccb684.tar.gz
paludis-fffe19b9ce7e93f0772897f38b3fecc3dfccb684.tar.xz
clear_additional_requirements
-rw-r--r--paludis/dep_spec.cc7
-rw-r--r--paludis/dep_spec.hh7
2 files changed, 14 insertions, 0 deletions
diff --git a/paludis/dep_spec.cc b/paludis/dep_spec.cc
index ae5283e..de0482f 100644
--- a/paludis/dep_spec.cc
+++ b/paludis/dep_spec.cc
@@ -1257,6 +1257,13 @@ PartiallyMadePackageDepSpec::additional_requirement(const std::tr1::shared_ptr<c
}
PartiallyMadePackageDepSpec &
+PartiallyMadePackageDepSpec::clear_additional_requirements()
+{
+ _imp->data->additional_requirements.reset();
+ return *this;
+}
+
+PartiallyMadePackageDepSpec &
PartiallyMadePackageDepSpec::annotations(const std::tr1::shared_ptr<const MetadataSectionKey> & a)
{
_imp->data->annotations = a;
diff --git a/paludis/dep_spec.hh b/paludis/dep_spec.hh
index bfb6bf1..552e5b6 100644
--- a/paludis/dep_spec.hh
+++ b/paludis/dep_spec.hh
@@ -436,6 +436,13 @@ namespace paludis
const std::tr1::shared_ptr<const AdditionalPackageDepSpecRequirement> &);
/**
+ * Clear additional requirements, return ourself.
+ *
+ * \since 0.41
+ */
+ PartiallyMadePackageDepSpec & clear_additional_requirements();
+
+ /**
* Add annotations
*/
PartiallyMadePackageDepSpec & annotations(