|
|
|
|
@ -176,14 +176,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 [];
|
|
|
|
|
|