From 44177f2e2cdf44d5b51acd60f14f0f231b7a925a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 9 Jan 2017 21:27:34 +0000 Subject: Send notifications after update when not in background mode --- gentoobrowse-api/util/update.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gentoobrowse-api/util/update.cpp b/gentoobrowse-api/util/update.cpp index e04392d..dbb43ee 100644 --- a/gentoobrowse-api/util/update.cpp +++ b/gentoobrowse-api/util/update.cpp @@ -8,7 +8,7 @@ int main(int c, char ** v) { std::string endpoint; - bool background, tree, bugs, changeLog; + bool background, tree, bugs, changeLog, sendNotifications; po::options_description opts("Gentoo Browse Util::Update options"); opts.add_options() ("endpoint", po::value(&endpoint)->default_value("tcp -p 9001"), "Service endpoint") @@ -16,6 +16,7 @@ main(int c, char ** v) ("bugs", po::value(&bugs)->default_value(true), "Update bugs") ("tree", po::value(&tree)->default_value(true), "Update tree") ("changeLog", po::value(&changeLog)->default_value(true), "Update change log") + ("notifications", po::value(&sendNotifications)->default_value(true), "Send notification emails") ("help,h", "Show help") ; @@ -51,6 +52,7 @@ main(int c, char ** v) std::cerr << ex.what() << std::endl; } }); + m->sendNotifications(); } jobs.clear(); -- cgit v1.2.3