1
0
Fork 0

Fix for ordering problem during package removal resulting dangling symlinks, partially fixes #1675

pull/1677/head
Miklós Márton 2013-03-08 15:31:00 +01:00
parent c54de4b72f
commit 42346ad837
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class LibraryInstaller implements InstallerInterface
} }
foreach ($binaries as $bin) { foreach ($binaries as $bin) {
$link = $this->binDir.'/'.basename($bin); $link = $this->binDir.'/'.basename($bin);
if (file_exists($link)) { if (is_link($link) || file_exists($link)) {
unlink($link); unlink($link);
} }
if (file_exists($link.'.bat')) { if (file_exists($link.'.bat')) {