Procházet zdrojové kódy

Merge pull request #4299 from webberwu/master

show change if package directory have changed to symbolic link
Jordi Boggiano před 10 roky
rodič
revize
5a26b7c102
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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;
                 }