Skip to content

Commit

Permalink
Merge pull request #36486 from nextcloud/bugfix/12475/dont-warn-about…
Browse files Browse the repository at this point in the history
…-missing-appstore-updates-for-git-apps

fix(updater): Don't warn about missing appstore updates for apps depl…
  • Loading branch information
nickvergessen authored Feb 24, 2023
2 parents 29539f5 + bde109d commit 4908d87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/updatenotification/lib/Controller/APIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ public function getAppList(string $newVersion): DataResponse {

$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);
Expand Down

0 comments on commit 4908d87

Please sign in to comment.