From 51cfe3ba739fc48ecc7e6bdd96655c214b1aaf3b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 19 Dec 2016 15:37:30 +0100 Subject: [PATCH] Fix whitespace in selfupdate output, fixes #5980 --- src/Composer/Command/SelfUpdateCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Composer/Command/SelfUpdateCommand.php b/src/Composer/Command/SelfUpdateCommand.php index c0834e2c8..bbc51931a 100644 --- a/src/Composer/Command/SelfUpdateCommand.php +++ b/src/Composer/Command/SelfUpdateCommand.php @@ -141,7 +141,10 @@ EOT $io->write(sprintf("Updating to version %s (%s channel).", $updateVersion, $versionsUtil->getChannel())); $remoteFilename = $baseUrl . ($updatingToTag ? "/download/{$updateVersion}/composer.phar" : '/composer.phar'); $signature = $remoteFilesystem->getContents(self::HOMEPAGE, $remoteFilename.'.sig', false); + $io->writeError(' ', false); $remoteFilesystem->copy(self::HOMEPAGE, $remoteFilename, $tempFilename, !$input->getOption('no-progress')); + $io->writeError(''); + if (!file_exists($tempFilename) || !$signature) { $io->writeError('The download of the new composer version failed for an unexpected reason');