aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-14 12:48:49 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-14 12:49:11 +0000
commit78e63403f804a2949bcf836e68978b318bdaf0c6 (patch)
tree8c735473f581d908714fb9302f1ad00518eabf48
parentd64d3187f1c8b93555e946b0a6692b1a48ae044f (diff)
downloadpaludis-78e63403f804a2949bcf836e68978b318bdaf0c6.tar.gz
paludis-78e63403f804a2949bcf836e68978b318bdaf0c6.tar.xz
Don't barf on empty messages
-rw-r--r--paludis/repositories/e/pipe_command_handler.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/repositories/e/pipe_command_handler.cc b/paludis/repositories/e/pipe_command_handler.cc
index e731623..f315aca 100644
--- a/paludis/repositories/e/pipe_command_handler.cc
+++ b/paludis/repositories/e/pipe_command_handler.cc
@@ -100,6 +100,12 @@ paludis::erepository::pipe_command_handler(const Environment * const environment
}
else if (tokens[0] == "MESSAGE")
{
+ if (tokens.size() == 3)
+ {
+ /* don't barf on empty messages */
+ tokens.push_back(" ");
+ }
+
if (tokens.size() < 4)
{
Log::get_instance()->message("e.pipe_commands.message.bad", ll_warning, lc_context) << "Got bad MESSAGE pipe command";