summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-10 00:27:05 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-10 00:27:05 +0100
commitf8e020ff87df46520fce0d8847e1a5c55c11ca3f (patch)
treebfbe601c8031cf7da4ac66ca1dc5141f38303f17 /core
parenta8ea3acafa1dd634060ad6f1dd6e8552660945f9 (diff)
parentfe04451cb1fdda99b79798d21f0a229f99224250 (diff)
downloadnextcloud-server-f8e020ff87df46520fce0d8847e1a5c55c11ca3f.tar.gz
nextcloud-server-f8e020ff87df46520fce0d8847e1a5c55c11ca3f.zip
Merge pull request #20390 from owncloud/appcheckcode-no-duplicate-requirement
Do not allow two different version requirements
Diffstat (limited to 'core')
-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>");
});