summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-02-24 10:16:16 +0100
committerGitHub <noreply@github.com>2023-02-24 10:16:16 +0100
commit4908d87c249d9fec3fe40ec95e44e50674135f91 (patch)
treec1ef0a0649d0e5a098e502a376025124b95bc3f7 /apps/updatenotification
parent29539f54362d63faf7e45172e192266263c7df70 (diff)
parentbde109d1581bd9fcdc64fe65796f8b610740059e (diff)
downloadnextcloud-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.php9
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);