瀏覽代碼

show change if package directory have changed to symbolic link

Webber Wu 10 年之前
父節點
當前提交
261a31c149
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Composer/Command/StatusCommand.php

+ 4 - 0
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;
                 }