summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-06-12 01:24:25 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-06-12 09:50:54 +0200
commit476cc2085ff1cecb47639052750034fc49af3fcc (patch)
treeddddaa696ae2632e6f5324e7b40b1edc06b5344f /desktop
parent21f5966f123e20251a3ab7535b669693be1d8e6a (diff)
use the shared path code
Change-Id: I02cc24d7a9e3b679a7bd883cd7085682063520ee Reviewed-on: https://gerrit.libreoffice.org/38681 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/updater.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/desktop/source/app/updater.cxx b/desktop/source/app/updater.cxx
index 1dac58923a3c..118c3981815f 100644
--- a/desktop/source/app/updater.cxx
+++ b/desktop/source/app/updater.cxx
@@ -243,15 +243,11 @@ void CreateValidUpdateDir(const update_info& update_info)
OUString aInstallDir("$BRAND_BASE_DIR");
rtl::Bootstrap::expandMacros(aInstallDir);
OUString aInstallPath = getPathFromURL(aInstallDir);
- OUString aUpdatedBuildDir("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/update_dir/");
- rtl::Bootstrap::expandMacros(aUpdatedBuildDir);
- OUString aWorkdirPath = getPathFromURL(aUpdatedBuildDir);
+ OUString aWorkdirPath = getPathFromURL(Updater::getUpdateDirURL());
- OUString aPatchDirURL("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/patch/");
- rtl::Bootstrap::expandMacros(aPatchDirURL);
- OUString aPatchDir = getPathFromURL(aPatchDirURL);
+ OUString aPatchDir = getPathFromURL(Updater::getPatchDirURL());
- OUString aUpdaterPath = getPathFromURL(aInstallDir + "/program/" + OUString::fromUtf8(pUpdaterName));
+ OUString aUpdaterPath = getPathFromURL(Updater::getExecutableDirURL() + OUString::fromUtf8(pUpdaterName));
OUString aCommand = aUpdaterPath + " " + aPatchDir + " " + aInstallPath + " " + aWorkdirPath + " -1";
@@ -266,7 +262,7 @@ void CreateValidUpdateDir(const update_info& update_info)
}
else
{
- OUString aUpdateInfoURL(aPatchDirURL + "/update.info");
+ OUString aUpdateInfoURL(Updater::getPatchDirURL() + "/update.info");
OUString aUpdateInfoPath = getPathFromURL(aUpdateInfoURL);
SvFileStream aUpdateInfoFile(aUpdateInfoPath, StreamMode::WRITE | StreamMode::TRUNC);
aUpdateInfoFile.WriteCharPtr("[UpdateInfo]\nOldBuildId=");