From 261a31c1498ee56ba651c3b842bf91e6d9b6cee7 Mon Sep 17 00:00:00 2001 From: Webber Wu Date: Wed, 7 Jan 2015 22:52:40 +0800 Subject: [PATCH] show change if package directory have changed to symbolic link --- src/Composer/Command/StatusCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Composer/Command/StatusCommand.php b/src/Composer/Command/StatusCommand.php index 65662c048..272b3e9d3 100644 --- a/src/Composer/Command/StatusCommand.php +++ b/src/Composer/Command/StatusCommand.php @@ -68,6 +68,10 @@ EOT if ($downloader instanceof ChangeReportInterface) { $targetDir = $im->getInstallPath($package); + if (is_link($targetDir)) { + $errors[$targetDir] = $targetDir . ' is a symbolic link.'; + } + if ($changes = $downloader->getLocalChanges($package, $targetDir)) { $errors[$targetDir] = $changes; }