1
0
Fork 0

make sure relative paths from custom installers to not break the installation of binaries

pull/2317/head
Christoph 2013-10-11 14:34:52 +02:00
parent cc37e4b0b8
commit f0842213e0
1 changed files with 6 additions and 0 deletions

View File

@ -198,6 +198,12 @@ class LibraryInstaller implements InstallerInterface
continue;
}
// in case a custom installer returned a relative path for the
// $package, we can now safely turn it into a absolute path (as we
// already checked the binary's existence). The following helpers
// will require absolute paths to work properly.
$binPath = realpath($binPath);
$this->initializeBinDir();
$link = $this->binDir.'/'.basename($bin);
if (file_exists($link)) {