1
0
Fork 0

Fix warning tag name, fixes #7494

pull/7495/head
Jordi Boggiano 2018-07-26 14:15:32 +02:00
parent d73aef5c8a
commit 9bc578e24a
2 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ class PathDownloader extends FileDownloader implements VcsCapableDownloaderInter
$this->io->writeError(" - Removing junction for <info>" . $package->getName() . "</info> (<comment>" . $package->getFullPrettyVersion() . "</comment>)"); $this->io->writeError(" - Removing junction for <info>" . $package->getName() . "</info> (<comment>" . $package->getFullPrettyVersion() . "</comment>)");
} }
if (!$this->filesystem->removeJunction($path)) { if (!$this->filesystem->removeJunction($path)) {
$this->io->writeError(" <warn>Could not remove junction at " . $path . " - is another process locking it?</warn>"); $this->io->writeError(" <warning>Could not remove junction at " . $path . " - is another process locking it?</warning>");
throw new \RuntimeException('Could not reliably remove junction for package ' . $package->getName()); throw new \RuntimeException('Could not reliably remove junction for package ' . $package->getName());
} }
} else { } else {

View File

@ -68,8 +68,8 @@ class ZipDownloader extends ArchiveDownloader
self::$isWindows = Platform::isWindows(); self::$isWindows = Platform::isWindows();
if (!self::$isWindows && !self::$hasSystemUnzip) { if (!self::$isWindows && !self::$hasSystemUnzip) {
$this->io->writeError("<warn>As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.</warn>"); $this->io->writeError("<warning>As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.</warning>");
$this->io->writeError("<warn>This may cause invalid reports of corrupted archives. Installing 'unzip' may remediate them.</warn>"); $this->io->writeError("<warning>This may cause invalid reports of corrupted archives. Installing 'unzip' may remediate them.</warning>");
} }
} }