浏览代码

Let the user know a package is being removed

Jordi Boggiano 13 年之前
父节点
当前提交
b99f9bae60
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      src/Composer/Downloader/FileDownloader.php
  2. 1 0
      src/Composer/Downloader/VcsDownloader.php

+ 1 - 0
src/Composer/Downloader/FileDownloader.php

@@ -101,6 +101,7 @@ class FileDownloader implements DownloaderInterface
      */
     public function remove(PackageInterface $package, $path)
     {
+        $this->io->write("  - Removing package <info>" . $package->getName() . "</info> (<comment>" . $package->getPrettyVersion() . "</comment>)");
         if (!$this->filesystem->removeDirectory($path)) {
             throw new \RuntimeException('Could not completely delete '.$path.', aborting.');
         }

+ 1 - 0
src/Composer/Downloader/VcsDownloader.php

@@ -77,6 +77,7 @@ abstract class VcsDownloader implements DownloaderInterface
     public function remove(PackageInterface $package, $path)
     {
         $this->enforceCleanDirectory($path);
+        $this->io->write("  - Removing package <info>" . $package->getName() . "</info> (<comment>" . $package->getPrettyVersion() . "</comment>)");
         if (!$this->filesystem->removeDirectory($path)) {
             throw new \RuntimeException('Could not completely delete '.$path.', aborting.');
         }