diff options
Diffstat (limited to 'gentoobrowse-api/util/update.cpp')
-rw-r--r-- | gentoobrowse-api/util/update.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gentoobrowse-api/util/update.cpp b/gentoobrowse-api/util/update.cpp index 01fb263..e04392d 100644 --- a/gentoobrowse-api/util/update.cpp +++ b/gentoobrowse-api/util/update.cpp @@ -8,13 +8,14 @@ int main(int c, char ** v) { std::string endpoint; - bool background, tree, bugs; + bool background, tree, bugs, changeLog; po::options_description opts("Gentoo Browse Util::Update options"); opts.add_options() ("endpoint", po::value(&endpoint)->default_value("tcp -p 9001"), "Service endpoint") ("background,b", po::value(&background)->default_value(false)->zero_tokens(), "Background") ("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") ("help,h", "Show help") ; @@ -34,6 +35,7 @@ main(int c, char ** v) std::set<Ice::AsyncResultPtr> jobs; if (tree) jobs.insert(m->begin_refreshPackageTree()); if (bugs) jobs.insert(m->begin_refreshBugs()); + if (changeLog) jobs.insert(m->begin_refreshChangeLogs()); std::for_each(jobs.begin(), jobs.end(), [](const auto & j) { j->waitForSent(); }); |