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…
pull/36754/head
Joas Schilling 3 years ago committed by GitHub
commit 4908d87c24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      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);

Loading…
Cancel
Save