summaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-11-09 11:10:37 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-11-09 11:10:37 +0100
commitfe04451cb1fdda99b79798d21f0a229f99224250 (patch)
treee49786d1a9e128dfb84d81a6cf0d48495563f902 /core/command
parent113f9f80f3f5a96afdcb71f4f76e3cee22e8dc58 (diff)
downloadnextcloud-server-fe04451cb1fdda99b79798d21f0a229f99224250.tar.gz
nextcloud-server-fe04451cb1fdda99b79798d21f0a229f99224250.zip
Do not allow two different version requirements
Diffstat (limited to 'core/command')
-rw-r--r--core/command/app/checkcode.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/command/app/checkcode.php b/core/command/app/checkcode.php
index a04f4bb5e03..e186d458c01 100644
--- a/core/command/app/checkcode.php
+++ b/core/command/app/checkcode.php
@@ -131,6 +131,10 @@ class CheckCode extends Command {
}
});
+ $infoChecker->listen('InfoChecker', 'duplicateRequirement', function($minMax) use ($output) {
+ $output->writeln("<error>Duplicate $minMax ownCloud version requirement found</error>");
+ });
+
$infoChecker->listen('InfoChecker', 'differentVersions', function($versionFile, $infoXML) use ($output) {
$output->writeln("<error>Different versions provided (appinfo/version: $versionFile - appinfo/info.xml: $infoXML)</error>");
});