summaryrefslogtreecommitdiffstats
path: root/lib/private/Updater.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-05-02 10:08:16 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-05-02 10:24:10 +0200
commite79424932a249b0e1568722ec0d709cd79a385ce (patch)
treeb3a5f9ec23d1252960662c3fa1515096fdded0ba /lib/private/Updater.php
parent81ee0673a51ae2fe0a0b14420dce9e7337eb1425 (diff)
downloadnextcloud-server-e79424932a249b0e1568722ec0d709cd79a385ce.tar.gz
nextcloud-server-e79424932a249b0e1568722ec0d709cd79a385ce.zip
Make sure the AppFetcher fetches the new applist from the appstore
When in the upgrade process the version in the config is still the old version. (Since we only upgrade it after the upgrade is complete). However the app list fetched from the appstore must be the new list. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r--lib/private/Updater.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index c080ee0eb43..5c4a7725a1b 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -32,6 +32,7 @@
namespace OC;
+use OC\App\AppStore\Fetcher\AppFetcher;
use OC\Hooks\BasicEmitter;
use OC\IntegrityCheck\Checker;
use OC_App;
@@ -246,6 +247,9 @@ class Updater extends BasicEmitter {
$this->checkAppsRequirements();
$this->doAppUpgrade();
+ // Update the appfetchers version so it downloads the correct list from the appstore
+ \OC::$server->getAppFetcher()->setVersion($currentVersion);
+
// upgrade appstore apps
$this->upgradeAppStoreApps(\OC::$server->getAppManager()->getInstalledApps());