Browse Source

Show channel even if there is no new version on the current channel

Peter Rehm 9 năm trước cách đây
mục cha
commit
bdd90a49c4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Composer/Command/SelfUpdateCommand.php

+ 1 - 1
src/Composer/Command/SelfUpdateCommand.php

@@ -117,7 +117,7 @@ EOT
         }
 
         if (Composer::VERSION === $updateVersion) {
-            $io->writeError('<info>You are already using composer version '.$updateVersion.'.</info>');
+            $io->writeError(sprintf('<info>You are already using composer version %s (%s channel).</info>', $updateVersion, $versionsUtil->getChannel()));
 
             // remove all backups except for the most recent, if any
             if ($input->getOption('clean-backups')) {