aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-27 18:44:13 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-27 18:44:13 +0000
commit899374110f3929278af84f575ebaeff039439bdb (patch)
tree226c78aba933655322da23e0d3065b6993b4d603
parenta269d8e9cae9b99b824b75d9a532c4f7edc730f2 (diff)
downloadpaludis-899374110f3929278af84f575ebaeff039439bdb.tar.gz
paludis-899374110f3929278af84f575ebaeff039439bdb.tar.xz
ProcessCommand::append_args
-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 8e971f5..eebf145 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 1b7839d..564c0d5 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 &);