aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-12-05 14:51:41 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-12-11 12:02:12 +0100
commitee46548f57310b45ce723fd03ec29bfb686f8bc2 (patch)
tree8c9f08b00e1b9cd9da567439a9f90993f6d3917a /lib
parent770f9876595a3cebd4b911a237ec1e681bc506be (diff)
downloadnextcloud-server-ee46548f57310b45ce723fd03ec29bfb686f8bc2.tar.gz
nextcloud-server-ee46548f57310b45ce723fd03ec29bfb686f8bc2.zip
adding dependencies for supported platforms
Diffstat (limited to 'lib')
-rw-r--r--lib/private/app/dependencyanalyzer.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/private/app/dependencyanalyzer.php b/lib/private/app/dependencyanalyzer.php
index af36637b675..2e838872385 100644
--- a/lib/private/app/dependencyanalyzer.php
+++ b/lib/private/app/dependencyanalyzer.php
@@ -48,6 +48,7 @@ class DependencyAnalyzer {
$this->analyzeDatabases();
$this->analyzeCommands();
$this->analyzeLibraries();
+ $this->analyzeOS();
return $this->missing;
}
@@ -135,6 +136,26 @@ class DependencyAnalyzer {
}
}
+ private function analyzeOS() {
+ if (!isset($this->dependencies['os'])) {
+ return;
+ }
+
+ $oss = $this->dependencies['os'];
+ if (empty($oss)) {
+ return;
+ }
+ $oss = array_map(function($os) {
+ return $this->getValue($os);
+ }, $oss);
+ $currentOS = $this->platform->getOS();
+ if (!in_array($currentOS, $oss)) {
+ $this->addMissing((string)$this->l->t('Following platforms are supported: %s', join(', ', $oss)));
+ }
+ }
+
+
+
/**
* @param $element
* @return mixed