Skip to content

Commit fa949da

Browse files
authored
Merge pull request #48166 from nextcloud/backport/48114/stable28
[stable28] fix(appstoreFetcher): get list from a custom store and remove unnecessary warning
2 parents 8b20422 + 5fa2c4a commit fa949da

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

lib/private/App/AppStore/Fetcher/AppFetcher.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,8 @@ public function setVersion(string $version, string $fileName = 'apps.json', bool
184184
public function get($allowUnstable = false): array {
185185
$allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily' || $this->getChannel() === 'git';
186186

187-
$appStoreEnabled = $this->config->getSystemValueBool('appstoreenabled', true);
188-
$internetAvailable = $this->config->getSystemValueBool('has_internet_connection', true);
189-
190-
if (!$appStoreEnabled || !$internetAvailable) {
191-
$this->logger->info('AppStore is disabled or this instance has no Internet connection', ['app' => 'appstoreFetcher']);
192-
return [];
193-
}
194-
195187
$apps = parent::get($allowPreReleases);
196188
if (empty($apps)) {
197-
$this->logger->warning('Could not get apps from the appstore', ['app' => 'appstoreFetcher']);
198189
return [];
199190
}
200191
$allowList = $this->config->getSystemValue('appsallowlist');

lib/private/App/AppStore/Fetcher/Fetcher.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ public function get($allowUnstable = false) {
158158
$isDefaultAppStore = $this->config->getSystemValueString('appstoreurl', self::APP_STORE_URL) === self::APP_STORE_URL;
159159

160160
if (!$appstoreenabled || (!$internetavailable && $isDefaultAppStore)) {
161+
$this->logger->info('AppStore is disabled or this instance has no Internet connection to access the default app store', ['app' => 'appstoreFetcher']);
161162
return [];
162163
}
163164

0 commit comments

Comments
 (0)