From 770f9876595a3cebd4b911a237ec1e681bc506be Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Fri, 5 Dec 2014 13:52:51 +0100 Subject: adding supported libraries - including min and max version --- lib/private/app/platform.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/private/app/platform.php') diff --git a/lib/private/app/platform.php b/lib/private/app/platform.php index da515a235a2..6279bb5f20c 100644 --- a/lib/private/app/platform.php +++ b/lib/private/app/platform.php @@ -62,4 +62,10 @@ class Platform { $path = \OC_Helper::findBinaryPath($command); return ($path !== null); } + + public function getLibraryVersion($name) { + $repo = new PlatformRepository(); + $lib = $repo->findLibrary($name); + return $lib; + } } -- cgit v1.2.3