From ce679c3da421a15348ce025d41435aff8c586987 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Tue, 17 Sep 2024 01:24:49 +0200 Subject: fix(appstoreFetcher): remove unneeded warning Signed-off-by: Grigorii K. Shartsev --- lib/private/App/AppStore/Fetcher/AppFetcher.php | 1 - 1 file changed, 1 deletion(-) (limited to 'lib') diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index 4ef0b1eb51b..30053034b80 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -162,7 +162,6 @@ class AppFetcher extends Fetcher { $apps = parent::get($allowPreReleases); if (empty($apps)) { - $this->logger->warning('Could not get apps from the appstore', ['app' => 'appstoreFetcher']); return []; } $allowList = $this->config->getSystemValue('appsallowlist'); -- cgit v1.2.3 From 70ed4aec39876ddabd668bb4c4ca889875503dcd Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Tue, 17 Sep 2024 01:29:25 +0200 Subject: fix(appstoreFetcher): get app list from custom app store Signed-off-by: Grigorii K. Shartsev --- lib/private/App/AppStore/Fetcher/AppFetcher.php | 8 -------- lib/private/App/AppStore/Fetcher/Fetcher.php | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index 30053034b80..e7ab2f9c377 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -152,14 +152,6 @@ class AppFetcher extends Fetcher { public function get($allowUnstable = false): array { $allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily' || $this->getChannel() === 'git'; - $appStoreEnabled = $this->config->getSystemValueBool('appstoreenabled', true); - $internetAvailable = $this->config->getSystemValueBool('has_internet_connection', true); - - if (!$appStoreEnabled || !$internetAvailable) { - $this->logger->info('AppStore is disabled or this instance has no Internet connection', ['app' => 'appstoreFetcher']); - return []; - } - $apps = parent::get($allowPreReleases); if (empty($apps)) { return []; diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php index bc85be662df..edb96b55f0a 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -121,6 +121,7 @@ abstract class Fetcher { $isDefaultAppStore = $this->config->getSystemValueString('appstoreurl', self::APP_STORE_URL) === self::APP_STORE_URL; if (!$appstoreenabled || (!$internetavailable && $isDefaultAppStore)) { + $this->logger->info('AppStore is disabled or this instance has no Internet connection to access the default app store', ['app' => 'appstoreFetcher']); return []; } -- cgit v1.2.3