diff options
Diffstat (limited to 'gentoobrowse-api/util/update.cpp')
-rw-r--r-- | gentoobrowse-api/util/update.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gentoobrowse-api/util/update.cpp b/gentoobrowse-api/util/update.cpp index 2d25530..f14df6e 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, sendNotifications, pull, git; + bool background, tree, bugs, sendNotifications, pull; po::options_description opts("Gentoo Browse Util::Update options"); opts.add_options() ("endpoint", po::value(&endpoint)->default_value("tcp -p 9001"), "Service endpoint") @@ -16,7 +16,6 @@ main(int c, char ** v) ("bugs", po::value(&bugs)->default_value(true), "Update bugs") ("tree", po::value(&tree)->default_value(true), "Update tree") ("pull", po::value(&pull)->default_value(true), "Perform a git pull on repositories") - ("git", po::value(&git)->default_value(true), "Update tree using git") ("notifications", po::value(&sendNotifications)->default_value(true), "Send notification emails") ("help,h", "Show help") ; @@ -35,9 +34,9 @@ main(int c, char ** v) m->ice_ping(); std::set<Ice::AsyncResultPtr> jobs; - if (pull) m->updateRepositories(); - if (tree) jobs.insert(git ? m->begin_refreshPackageTreeGit() : m->begin_refreshPackageTree()); if (bugs) jobs.insert(m->begin_refreshBugs()); + if (pull) m->updateRepositories(); + if (tree) jobs.insert(m->begin_refreshPackageTree()); std::for_each(jobs.begin(), jobs.end(), [](const auto & j) { j->waitForSent(); }); |