|
|
@ -645,28 +645,14 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
|
|
|
unset($expanded, $expandedVersion, $versionData);
|
|
|
|
unset($expanded, $expandedVersion, $versionData);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static $uniqKeys = array('version', 'version_normalized', 'source', 'dist', 'time');
|
|
|
|
|
|
|
|
$versionsToLoad = array();
|
|
|
|
$versionsToLoad = array();
|
|
|
|
foreach ($versions as $version) {
|
|
|
|
foreach ($versions as $version) {
|
|
|
|
if (isset($version['version_normalizeds'])) {
|
|
|
|
if (!isset($version['version_normalized'])) {
|
|
|
|
foreach ($version['version_normalizeds'] as $index => $normalizedVersion) {
|
|
|
|
$version['version_normalized'] = $repo->versionParser->normalize($version['version']);
|
|
|
|
if (!$repo->isVersionAcceptable($isPackageAcceptableCallable, $constraint, $realName, $normalizedVersion)) {
|
|
|
|
}
|
|
|
|
foreach ($uniqKeys as $key) {
|
|
|
|
|
|
|
|
unset($version[$key.'s'][$index]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (count($version['version_normalizeds'])) {
|
|
|
|
|
|
|
|
$versionsToLoad[] = $version;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (!isset($version['version_normalized'])) {
|
|
|
|
|
|
|
|
$version['version_normalized'] = $repo->versionParser->normalize($version['version']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($repo->isVersionAcceptable($isPackageAcceptableCallable, $constraint, $realName, $version['version_normalized'])) {
|
|
|
|
if ($repo->isVersionAcceptable($isPackageAcceptableCallable, $constraint, $realName, $version['version_normalized'])) {
|
|
|
|
$versionsToLoad[] = $version;
|
|
|
|
$versionsToLoad[] = $version;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|