mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
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:
commit
4908d87c24
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Reference in a new issue