From 17e1cdc5efa0ab8f8ae7dc4e3c72ffa3b7331875 Mon Sep 17 00:00:00 2001 From: Matt Mullins Date: Sun, 5 May 2013 00:04:46 -0700 Subject: [PATCH] irc application version 10. Upgrade includes: * new childspecs for all the irc application's supervisors * irc_amqp_listener will terminate its associated amqp_channel * irc_conn is [ab]used to recreate the irc_amqp_listener with a new childspec, since it's a transient process. --- bot.rel | 4 ++-- irc/irc.app | 2 +- irc/irc.appup | 14 +++++++++----- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/bot.rel b/bot.rel index 74d76ce..e4a10bd 100644 --- a/bot.rel +++ b/bot.rel @@ -1,4 +1,4 @@ -{release, {"erlbot", "9.5"}, +{release, {"erlbot", "10"}, {erts, "5.8.3"}, [{kernel, "2.14.5"}, {stdlib, "1.17.5"}, @@ -7,5 +7,5 @@ {amqp_client, "0.0.0"}, {core, "2"}, {amqp, "2"}, - {irc, "9"}] + {irc, "10"}] }. diff --git a/irc/irc.app b/irc/irc.app index bd11c08..90a3184 100644 --- a/irc/irc.app +++ b/irc/irc.app @@ -1,6 +1,6 @@ {application, irc, [{description, "IRC protocol application"}, - {vsn, "9"}, + {vsn, "10"}, {modules, [irc_util, irc_app, irc_sup, irc_net_sup, irc_conn, irc_object_sup, irc_amqp_listener, irc_command]}, {registered, [irc_sup, irc_dummy]}, diff --git a/irc/irc.appup b/irc/irc.appup index f9ad801..50b0537 100644 --- a/irc/irc.appup +++ b/irc/irc.appup @@ -1,8 +1,12 @@ -{"9", - [{"8", - [{update, irc_amqp_listener, {advanced, ok}, [amqp_bot_listener]} +{"10", + [{"9", + [{update, irc_object_sup, supervisor}, + {update, irc_amqp_listener}, + {update, irc_conn, {advanced, ok}} ]}], - [{"8", - [{update, irc_amqp_listener, {advanced, ok}, [amqp_bot_listener]} + [{"9", + [{update, irc_conn, {advanced, ok}}, + {update, irc_amqp_listener}, + {update, irc_object_sup, supervisor} ]}] }. -- 2.11.0