aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_import.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-31 02:08:00 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-01 03:57:53 +0000
commit79da6018d6c02a099af83ecd62e8858ead5f27db (patch)
treef97a0337777101f8c4a90257397e30196f798b92 /src/clients/cave/cmd_import.cc
parent3dd53676acf85d7b3d9758f2def081d20c00b3b9 (diff)
downloadpaludis-79da6018d6c02a099af83ecd62e8858ead5f27db.tar.gz
paludis-79da6018d6c02a099af83ecd62e8858ead5f27db.tar.xz
Use pretty_print_value
Diffstat (limited to 'src/clients/cave/cmd_import.cc')
-rw-r--r--src/clients/cave/cmd_import.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clients/cave/cmd_import.cc b/src/clients/cave/cmd_import.cc
index 6c1734f1b..2effd6d0f 100644
--- a/src/clients/cave/cmd_import.cc
+++ b/src/clients/cave/cmd_import.cc
@@ -39,6 +39,7 @@
#include <paludis/stringify_formatter.hh>
#include <paludis/repository_factory.hh>
#include <paludis/package_database.hh>
+#include <paludis/unformatted_pretty_printer.hh>
#include <iostream>
#include <cstdlib>
@@ -237,13 +238,12 @@ ImportCommand::run(
throw args::DoHelp("--" + cmdline.a_preserve_metadata.long_name() + " specified but "
"no old ID available");
- StringifyFormatter f;
if (old_id->short_description_key())
description = old_id->short_description_key()->value();
if (old_id->build_dependencies_key())
- build_dependencies = old_id->build_dependencies_key()->pretty_print_flat(f);
+ build_dependencies = old_id->build_dependencies_key()->pretty_print_value(UnformattedPrettyPrinter(), { });
if (old_id->run_dependencies_key())
- run_dependencies = old_id->run_dependencies_key()->pretty_print_flat(f);
+ run_dependencies = old_id->run_dependencies_key()->pretty_print_value(UnformattedPrettyPrinter(), { });
}
if (cmdline.a_description.specified())