aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc')
-rw-r--r--paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc b/paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc
index cf563ef17..bc2df967b 100644
--- a/paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc
+++ b/paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc
@@ -26,6 +26,7 @@
#include <paludis/dep_label.hh>
#include <paludis/comma_separated_dep_parser.hh>
#include <paludis/comma_separated_dep_printer.hh>
+#include <paludis/comma_separated_dep_pretty_printer.hh>
#include <paludis/always_enabled_dependency_label.hh>
#include <memory>
@@ -107,6 +108,16 @@ UnavailableRepositoryDependenciesKey::type() const
return _imp->type;
}
+const std::string
+UnavailableRepositoryDependenciesKey::pretty_print_value(
+ const PrettyPrinter & printer,
+ const PrettyPrintOptions & options) const
+{
+ CommaSeparatedDepPrettyPrinter p(printer, options);
+ _imp->value->top()->accept(p);
+ return p.result();
+}
+
std::string
UnavailableRepositoryDependenciesKey::pretty_print(const DependencySpecTree::ItemFormatter & f) const
{