1
0
Fork 0

Replaced <error> with <warning> for abandoned package as it reflects the intention of this feature better

pull/3989/head
Cees-Jan Kiewiet 2015-04-30 23:34:26 +02:00
parent bdb6ecb29e
commit c9d9b5085a
3 changed files with 4 additions and 4 deletions

View File

@ -302,7 +302,7 @@ EOT
: null;
$this->getIO()->writeError(
sprintf('<error>Attention: This package is abandoned and no longer maintained.%s</error>', $replacement)
sprintf('<warning>Attention: This package is abandoned and no longer maintained.%s</warning>', $replacement)
);
}

View File

@ -264,7 +264,7 @@ class Installer
$this->io->writeError(
sprintf(
"<error>Package %s is abandoned, you should avoid using it. %s.</error>",
"<warning>Package %s is abandoned, you should avoid using it. %s.</warning>",
$package->getPrettyName(),
$replacement
)

View File

@ -26,8 +26,8 @@ install
--EXPECT-OUTPUT--
<info>Loading composer repositories with package information</info>
<info>Installing dependencies (including require-dev)</info>
<error>Package a/a is abandoned, you should avoid using it. No replacement was suggested.</error>
<error>Package c/c is abandoned, you should avoid using it. Use b/b instead.</error>
<warning>Package a/a is abandoned, you should avoid using it. No replacement was suggested.</warning>
<warning>Package c/c is abandoned, you should avoid using it. Use b/b instead.</warning>
<info>Writing lock file</info>
<info>Generating autoload files</info>