Skip to content

Commit d306a00

Browse files
Merge pull request #48165 from nextcloud/backport/48114/stable29
[stable29] fix(appstoreFetcher): get list from a custom store and remove unnecessary warning
2 parents 2fef861 + 23e8424 commit d306a00

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

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

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

179-
$appStoreEnabled = $this->config->getSystemValueBool('appstoreenabled', true);
180-
$internetAvailable = $this->config->getSystemValueBool('has_internet_connection', true);
181-
182-
if (!$appStoreEnabled || !$internetAvailable) {
183-
$this->logger->info('AppStore is disabled or this instance has no Internet connection', ['app' => 'appstoreFetcher']);
184-
return [];
185-
}
186-
187179
$apps = parent::get($allowPreReleases);
188180
if (empty($apps)) {
189-
$this->logger->warning('Could not get apps from the appstore', ['app' => 'appstoreFetcher']);
190181
return [];
191182
}
192183
$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
@@ -145,6 +145,7 @@ public function get($allowUnstable = false) {
145145
$isDefaultAppStore = $this->config->getSystemValueString('appstoreurl', self::APP_STORE_URL) === self::APP_STORE_URL;
146146

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

0 commit comments

Comments
 (0)