aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/app
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-11 11:25:50 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-02-11 11:54:13 +0100
commit8cfdc62eaed5f80d92e7185ead451acb691a1b67 (patch)
tree8d2a80f48e8e109557f794c7bab78d9b9286e745 /lib/private/app
parent5165998723925b414f688021aeaa8b90a844a918 (diff)
downloadnextcloud-server-8cfdc62eaed5f80d92e7185ead451acb691a1b67.tar.gz
nextcloud-server-8cfdc62eaed5f80d92e7185ead451acb691a1b67.zip
Update info checker requirements
Diffstat (limited to 'lib/private/app')
-rw-r--r--lib/private/app/codechecker/infochecker.php17
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/private/app/codechecker/infochecker.php b/lib/private/app/codechecker/infochecker.php
index ac92ee2661c..812007d8839 100644
--- a/lib/private/app/codechecker/infochecker.php
+++ b/lib/private/app/codechecker/infochecker.php
@@ -41,21 +41,22 @@ class InfoChecker extends BasicEmitter {
'bugs',
'category',
'default_enable',
- 'dependencies',
+ 'dependencies', // TODO: Mandatory as of ownCloud 11
'documentation',
'namespace',
'ocsid',
'public',
'remote',
'repository',
- 'require',
- 'requiremin',
'types',
'version',
'website',
];
private $deprecatedFields = [
'info',
+ 'require',
+ 'requiremax',
+ 'requiremin',
'shipped',
'standalone',
];
@@ -137,7 +138,7 @@ class InfoChecker extends BasicEmitter {
$versionFile = $appPath . '/appinfo/version';
if (is_file($versionFile)) {
$version = trim(file_get_contents($versionFile));
- if(isset($info['version'])) {
+ if (isset($info['version'])) {
if($info['version'] !== $version) {
$this->emit('InfoChecker', 'differentVersions',
[$version, $info['version']]);
@@ -152,14 +153,6 @@ class InfoChecker extends BasicEmitter {
} else {
$this->emit('InfoChecker', 'migrateVersion', [$version]);
}
- } else {
- if(!isset($info['version'])) {
- $this->emit('InfoChecker', 'mandatoryFieldMissing', ['version']);
- $errors[] = [
- 'type' => 'mandatoryFieldMissing',
- 'field' => 'version',
- ];
- }
}
return $errors;