Add support for relative paths in handling of install-path for the installed.json
parent
1b1d59ee6c
commit
6e45a53e76
|
@ -96,7 +96,7 @@ class FilesystemRepository extends WritableArrayRepository
|
|||
foreach ($this->getCanonicalPackages() as $package) {
|
||||
$pkgArray = $dumper->dump($package);
|
||||
$path = $installationManager->getInstallPath($package);
|
||||
$pkgArray['install-path'] = ('' !== $path && null !== $path) ? $fs->findShortestPath($repoDir, $path, true) : null;
|
||||
$pkgArray['install-path'] = ('' !== $path && null !== $path) ? $fs->findShortestPath($repoDir, $fs->isAbsolutePath($path) ? $path : getcwd() . '/' . $path, true) : null;
|
||||
$data['packages'][] = $pkgArray;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue