From dd86be708335ca3fa429c58ab5bc0bcc0ae12f93 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Thu, 15 Aug 2013 12:02:41 +0100 Subject: [PATCH] Fixed issue #48. --- src/backend/network.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backend/network.cpp b/src/backend/network.cpp index 8c73b1cd..ed1ab520 100644 --- a/src/backend/network.cpp +++ b/src/backend/network.cpp @@ -112,6 +112,12 @@ namespace boss { //Look at the update URL to decide. if (!boost::iends_with(game.URL(), ".git")) { //Subversion + + //Check if the Subversion binary exists. + if (!fs::exists(g_path_svn)) { + throw boss::error(boss::error::path_not_found, "Could not find \"svn.exe\". Subversion cannot be used to update the masterlist."); + } + string command, output, revision; //First check if the working copy is set up or not. command = g_path_svn.string() + " info \"" + game.MasterlistPath().string() + "\"";