diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2023-02-24 10:16:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 10:16:16 +0100 |
commit | 4908d87c249d9fec3fe40ec95e44e50674135f91 (patch) | |
tree | c1ef0a0649d0e5a098e502a376025124b95bc3f7 /apps/updatenotification | |
parent | 29539f54362d63faf7e45172e192266263c7df70 (diff) | |
parent | bde109d1581bd9fcdc64fe65796f8b610740059e (diff) | |
download | nextcloud-server-4908d87c249d9fec3fe40ec95e44e50674135f91.tar.gz nextcloud-server-4908d87c249d9fec3fe40ec95e44e50674135f91.zip |
Merge pull request #36486 from nextcloud/bugfix/12475/dont-warn-about-missing-appstore-updates-for-git-apps
fix(updater): Don't warn about missing appstore updates for apps depl…
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); |