aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/util/process.cc6
-rw-r--r--paludis/util/process.hh1
2 files changed, 7 insertions, 0 deletions
diff --git a/paludis/util/process.cc b/paludis/util/process.cc
index 8e971f5ba..eebf145ce 100644
--- a/paludis/util/process.cc
+++ b/paludis/util/process.cc
@@ -93,6 +93,12 @@ ProcessCommand::prepend_args(const std::initializer_list<std::string> & l)
}
void
+ProcessCommand::append_args(const std::initializer_list<std::string> & l)
+{
+ _imp->args.insert(_imp->args.end(), l);
+}
+
+void
ProcessCommand::exec()
{
if (! _imp->args_string.empty())
diff --git a/paludis/util/process.hh b/paludis/util/process.hh
index 1b7839da0..564c0d5aa 100644
--- a/paludis/util/process.hh
+++ b/paludis/util/process.hh
@@ -69,6 +69,7 @@ namespace paludis
ProcessCommand & operator= (const ProcessCommand &) = delete;
void prepend_args(const std::initializer_list<std::string> &);
+ void append_args(const std::initializer_list<std::string> &);
void echo_command_to(std::ostream &);