]> source.dussan.org Git - nextcloud-server.git/commitdiff
add libs which have no version number
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 2 Feb 2015 09:49:46 +0000 (10:49 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 2 Feb 2015 09:49:46 +0000 (10:49 +0100)
lib/private/app/platformrepository.php

index 96d04ec2e425dfb76472af47b367d730a20612bc..be825e74ca3d5c511bb565285975b3ad90d1feca 100644 (file)
@@ -28,13 +28,10 @@ class PlatformRepository {
                        $ext = new \ReflectionExtension($name);
                        try {
                                $prettyVersion = $ext->getVersion();
+                               $prettyVersion = $this->normalizeVersion($prettyVersion);
                        } catch (\UnexpectedValueException $e) {
                                $prettyVersion = '0';
-                       }
-                       try {
                                $prettyVersion = $this->normalizeVersion($prettyVersion);
-                       } catch (\UnexpectedValueException $e) {
-                               continue;
                        }
 
                        $packages[$this->buildPackageName($name)] = $prettyVersion;