aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/unpackaged/unpackaged_key.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/unpackaged/unpackaged_key.cc')
-rw-r--r--paludis/repositories/unpackaged/unpackaged_key.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/paludis/repositories/unpackaged/unpackaged_key.cc b/paludis/repositories/unpackaged/unpackaged_key.cc
index d66a0a68e..cbd7fd726 100644
--- a/paludis/repositories/unpackaged/unpackaged_key.cc
+++ b/paludis/repositories/unpackaged/unpackaged_key.cc
@@ -27,6 +27,7 @@
#include <paludis/elike_choices.hh>
#include <paludis/comma_separated_dep_printer.hh>
#include <paludis/comma_separated_dep_parser.hh>
+#include <paludis/comma_separated_dep_pretty_printer.hh>
#include <memory>
using namespace paludis;
@@ -95,6 +96,15 @@ UnpackagedDependencyKey::type() const
return _imp->type;
}
+const std::string
+UnpackagedDependencyKey::pretty_print_value(
+ const PrettyPrinter & printer, const PrettyPrintOptions & options) const
+{
+ CommaSeparatedDepPrettyPrinter p(printer, options);
+ _imp->value->top()->accept(p);
+ return p.result();
+}
+
std::string
UnpackagedDependencyKey::pretty_print(const DependencySpecTree::ItemFormatter & f) const
{