Merge branch '1.4'
commit
23ab57c311
|
@ -90,7 +90,8 @@ class ClassMapGenerator
|
||||||
$filePath = preg_replace('{[\\\\/]{2,}}', '/', $filePath);
|
$filePath = preg_replace('{[\\\\/]{2,}}', '/', $filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($blacklist && preg_match($blacklist, strtr($filePath, '\\', '/'))) {
|
// check the realpath of the file against the blacklist as the path might be a symlink and the blacklist is realpath'd so symlink are resolved
|
||||||
|
if ($blacklist && preg_match($blacklist, strtr(realpath($filePath), '\\', '/'))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -353,7 +353,7 @@ EOT
|
||||||
}
|
}
|
||||||
if ($input->getOption('outdated') && $latestPackage && $latestPackage->getFullPrettyVersion() === $package->getFullPrettyVersion() && !$latestPackage->isAbandoned()) {
|
if ($input->getOption('outdated') && $latestPackage && $latestPackage->getFullPrettyVersion() === $package->getFullPrettyVersion() && !$latestPackage->isAbandoned()) {
|
||||||
continue;
|
continue;
|
||||||
} elseif ($input->getOption('outdated')) {
|
} elseif ($input->getOption('outdated') || $input->getOption('strict')) {
|
||||||
$hasOutdatedPackages = true;
|
$hasOutdatedPackages = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1199,10 +1199,12 @@ class Installer
|
||||||
}
|
}
|
||||||
|
|
||||||
$package->setSourceReference($reference);
|
$package->setSourceReference($reference);
|
||||||
$package->setDistReference($reference);
|
|
||||||
|
|
||||||
if (preg_match('{^https?://(?:(?:www\.)?bitbucket\.org|(api\.)?github\.com)/}i', $package->getDistUrl())) {
|
if (preg_match('{^https?://(?:(?:www\.)?bitbucket\.org|(api\.)?github\.com)/}i', $package->getDistUrl())) {
|
||||||
|
$package->setDistReference($reference);
|
||||||
$package->setDistUrl(preg_replace('{(?<=/)[a-f0-9]{40}(?=/|$)}i', $reference, $package->getDistUrl()));
|
$package->setDistUrl(preg_replace('{(?<=/)[a-f0-9]{40}(?=/|$)}i', $reference, $package->getDistUrl()));
|
||||||
|
} else if ($package->getDistReference()) { // update the dist reference if there was one, but if none was provided ignore it
|
||||||
|
$package->setDistReference($reference);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue