diff options
author | Joas Schilling <coding@schilljs.com> | 2023-02-01 21:39:49 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-02-01 21:39:49 +0100 |
commit | bde109d1581bd9fcdc64fe65796f8b610740059e (patch) | |
tree | 0ba8a9c4a32a4bf536cfb4dd2faba2c2705cc4cb /apps/updatenotification | |
parent | 41148acf833d401aa6c8bd23617ae8639b6aaae6 (diff) | |
download | nextcloud-server-bde109d1581bd9fcdc64fe65796f8b610740059e.tar.gz nextcloud-server-bde109d1581bd9fcdc64fe65796f8b610740059e.zip |
fix(updater): Don't warn about missing appstore updates for apps deployed from git
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification')
-rw-r--r-- | apps/updatenotification/lib/Controller/APIController.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/updatenotification/lib/Controller/APIController.php b/apps/updatenotification/lib/Controller/APIController.php index 75b847aceb3..26657eb66f0 100644 --- a/apps/updatenotification/lib/Controller/APIController.php +++ b/apps/updatenotification/lib/Controller/APIController.php @@ -130,6 +130,15 @@ class APIController extends OCSController { $this->language = $this->l10nFactory->getUserLanguage($this->userSession->getUser()); + // Ignore apps that are deployed from git + $installedApps = array_filter($installedApps, function(string $appId) { + try { + return !file_exists($this->appManager->getAppPath($appId) . '/.git'); + } catch (AppPathNotFoundException $e) { + return true; + } + }); + $missing = array_diff($installedApps, $availableApps); $missing = array_map([$this, 'getAppDetails'], $missing); sort($missing); |