add libs which have no version number

This commit is contained in:
Thomas Müller 2015-02-02 10:49:46 +01:00
parent c9543c9e8e
commit 82b271855c
1 changed files with 2 additions and 5 deletions

View File

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