aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/App/DependencyAnalyzer.php4
-rw-r--r--settings/Controller/AppSettingsController.php8
-rw-r--r--tests/lib/App/DependencyAnalyzerTest.php16
3 files changed, 18 insertions, 10 deletions
diff --git a/lib/private/App/DependencyAnalyzer.php b/lib/private/App/DependencyAnalyzer.php
index c24b25ff14d..84d87efa3d3 100644
--- a/lib/private/App/DependencyAnalyzer.php
+++ b/lib/private/App/DependencyAnalyzer.php
@@ -336,13 +336,9 @@ class DependencyAnalyzer {
switch ($version) {
case '9.1':
return '10';
- case '9.2':
- return '11';
default:
if (strpos($version, '9.1.') === 0) {
$version = '10.0.' . substr($version, 4);
- } else if (strpos($version, '9.2.') === 0) {
- $version = '11.0.' . substr($version, 4);
}
return $version;
}
diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php
index 8164dd1fcfa..b668c5cfb38 100644
--- a/settings/Controller/AppSettingsController.php
+++ b/settings/Controller/AppSettingsController.php
@@ -169,10 +169,10 @@ class AppSettingsController extends Controller {
$nextCloudVersion = $versionParser->getVersion($app['releases'][0]['rawPlatformVersionSpec']);
$nextCloudVersionDependencies = [];
if($nextCloudVersion->getMinimumVersion() !== '') {
- $nextCloudVersionDependencies['owncloud']['@attributes']['min-version'] = $nextCloudVersion->getMinimumVersion();
+ $nextCloudVersionDependencies['nextcloud']['@attributes']['min-version'] = $nextCloudVersion->getMinimumVersion();
}
if($nextCloudVersion->getMaximumVersion() !== '') {
- $nextCloudVersionDependencies['owncloud']['@attributes']['max-version'] = $nextCloudVersion->getMaximumVersion();
+ $nextCloudVersionDependencies['nextcloud']['@attributes']['max-version'] = $nextCloudVersion->getMaximumVersion();
}
$phpVersion = $versionParser->getVersion($app['releases'][0]['rawPhpVersionSpec']);
$existsLocally = (\OC_App::getAppPath($app['id']) !== false) ? true : false;
@@ -331,8 +331,8 @@ class AppSettingsController extends Controller {
$app['canInstall'] = empty($missing);
$app['missingDependencies'] = $missing;
- $app['missingMinOwnCloudVersion'] = !isset($app['dependencies']['owncloud']['@attributes']['min-version']);
- $app['missingMaxOwnCloudVersion'] = !isset($app['dependencies']['owncloud']['@attributes']['max-version']);
+ $app['missingMinOwnCloudVersion'] = !isset($app['dependencies']['nextcloud']['@attributes']['min-version']);
+ $app['missingMaxOwnCloudVersion'] = !isset($app['dependencies']['nextcloud']['@attributes']['max-version']);
return $app;
}, $apps);
diff --git a/tests/lib/App/DependencyAnalyzerTest.php b/tests/lib/App/DependencyAnalyzerTest.php
index fd44954eaf4..65b45a002d4 100644
--- a/tests/lib/App/DependencyAnalyzerTest.php
+++ b/tests/lib/App/DependencyAnalyzerTest.php
@@ -295,7 +295,7 @@ class DependencyAnalyzerTest extends TestCase {
],
[
[
- 'Server version 11 or higher is required.',
+ 'Server version 9.2 or higher is required.',
],
[
'nextcloud' => [
@@ -307,6 +307,18 @@ class DependencyAnalyzerTest extends TestCase {
],
[
[
+ 'Server version 11 or higher is required.',
+ ],
+ [
+ 'nextcloud' => [
+ '@attributes' => [
+ 'min-version' => '11',
+ ],
+ ],
+ ],
+ ],
+ [
+ [
'Server version 8.0.1 or lower is required.',
],
[
@@ -388,7 +400,7 @@ class DependencyAnalyzerTest extends TestCase {
],
[
[
- 'Server version 11 or higher is required.',
+ 'Server version 9.2 or higher is required.',
],
[
'owncloud' => [