aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/App/AppStore/Fetcher/AppFetcher.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-04-30 09:43:33 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-08-07 13:51:39 +0200
commit9e962fb69f0afa12eeec3d2e412648a5e432588c (patch)
tree5277d4d9e6aebf3ad7bb18fc530507abd945a7e9 /lib/private/App/AppStore/Fetcher/AppFetcher.php
parenta3d30bf4a23f3827103dd3ba5e10c16a58362a80 (diff)
downloadnextcloud-server-9e962fb69f0afa12eeec3d2e412648a5e432588c.tar.gz
nextcloud-server-9e962fb69f0afa12eeec3d2e412648a5e432588c.zip
Allow to update to nightly
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/App/AppStore/Fetcher/AppFetcher.php')
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php
index e4c2ba4e85e..f108d23dd9b 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -78,15 +78,16 @@ class AppFetcher extends Fetcher {
*
* @param string $ETag
* @param string $content
+ * @param bool [$allowUnstable] Allow unstable releases
*
* @return array
*/
- protected function fetch($ETag, $content) {
+ protected function fetch($ETag, $content, $allowUnstable = false) {
/** @var mixed[] $response */
$response = parent::fetch($ETag, $content);
- $allowPreReleases = $this->getChannel() === 'beta' || $this->getChannel() === 'daily';
- $allowNightly = $this->getChannel() === 'daily';
+ $allowPreReleases = $allowUnstable || $this->getChannel() === 'beta' || $this->getChannel() === 'daily';
+ $allowNightly = $allowUnstable || $this->getChannel() === 'daily';
foreach ($response['data'] as $dataKey => $app) {
$releases = [];