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…
This commit is contained in:
Joas Schilling 2023-02-24 10:16:16 +01:00 committed by GitHub
commit 4908d87c24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);