summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-06 04:50:33 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-05-19 03:43:22 +0200
commitf66232738c8afb2331a29df3934c0eecc296d995 (patch)
treed90eb64c51e9b1d72923e2957ec52f2d6de945fb /desktop
parentuse correct syntac for platform string (diff)
downloadcore-f66232738c8afb2331a29df3934c0eecc296d995.tar.gz
core-f66232738c8afb2331a29df3934c0eecc296d995.zip
reenable the download of the update files
Change-Id: I123298d323253a83719033756ca7e0a83a2d157f
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/updater.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/desktop/source/app/updater.cxx b/desktop/source/app/updater.cxx
index 202b5155f054..94328c4fd37f 100644
--- a/desktop/source/app/updater.cxx
+++ b/desktop/source/app/updater.cxx
@@ -488,24 +488,9 @@ void update_checker()
OUString aDownloadCheckURL = aDownloadCheckBaseURL + "update/1/" + aProductName +
"/" + aVersion + "/" + aBuildID + "/" + aBuildTarget + "/" + aLocale +
"/" + aChannel;
- SAL_DEBUG(aDownloadCheckURL);
OString aURL = OUStringToOString(aDownloadCheckURL, RTL_TEXTENCODING_UTF8);
-#if 1
std::string response_body = download_content(aURL, false);
- SAL_DEBUG(response_body);
- exit(1);
-#else
- std::string response_body;
- if(std::ifstream is{"/lo/users/moggi/update.json", std::ios::binary | std::ios::ate})
- {
- auto size = is.tellg();
- std::string str(size, '\0'); // construct string to stream size
- is.seekg(0);
- is.read(&str[0], size);
- response_body = str;
- }
-#endif
try
{