1
0
Fork 0

fix issue where path repositories would be matched oddly

pull/5328/head
Steve Buzonas 2016-05-12 21:55:34 -04:00
parent 758e7cab53
commit d0c009edf2
1 changed files with 2 additions and 2 deletions

View File

@ -82,10 +82,9 @@ EOT
// list packages // list packages
foreach ($installedRepo->getCanonicalPackages() as $package) { foreach ($installedRepo->getCanonicalPackages() as $package) {
$downloader = $dm->getDownloaderForInstalledPackage($package); $downloader = $dm->getDownloaderForInstalledPackage($package);
$targetDir = $im->getInstallPath($package);
if ($downloader instanceof ChangeReportInterface) { if ($downloader instanceof ChangeReportInterface) {
$targetDir = $im->getInstallPath($package);
if (is_link($targetDir)) { if (is_link($targetDir)) {
$errors[$targetDir] = $targetDir . ' is a symbolic link.'; $errors[$targetDir] = $targetDir . ' is a symbolic link.';
} }
@ -111,6 +110,7 @@ EOT
$currentVersion = $guesser->guessVersion($dumper->dump($package), $targetDir); $currentVersion = $guesser->guessVersion($dumper->dump($package), $targetDir);
if ($previousRef && $currentVersion['commit'] !== $previousRef) { if ($previousRef && $currentVersion['commit'] !== $previousRef) {
var_dump($previousRef, $currentVersion['commit'], $package->getName(), $package->getInstallationSource());
$vcsVersionChanges[$targetDir] = array( $vcsVersionChanges[$targetDir] = array(
'previous' => array( 'previous' => array(
'version' => $package->getVersion(), 'version' => $package->getVersion(),