Skip to content

Commit 17653c6

Browse files
Prestissimo: do not display twice download infos and display info even if not in verbose mode.
1 parent 98081af commit 17653c6

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/PrestissimoFileFetcher.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,7 @@ protected function fetchWithPrestissimo($version, $destination) {
3737
array_walk($this->filenames, function ($filename) use ($version, $destination, &$requests) {
3838
$url = $this->getUri($filename, $version);
3939
$this->fs->ensureDirectoryExists($destination . '/' . dirname($filename));
40-
if ($this->progress) {
41-
$this->io->writeError(" - <info>$filename</info> (<comment>$url</comment>): ", FALSE);
42-
$requests[] = new CopyRequest($url, $destination . '/' . $filename, false, $this->io, $this->config);
43-
// Used to put a new line because the remote file system does not put
44-
// one.
45-
$this->io->writeError('');
46-
}
47-
else {
48-
$requests[] = new CopyRequest($url, $destination . '/' . $filename, false, $this->io, $this->config);
49-
}
40+
$requests[] = new CopyRequest($url, $destination . '/' . $filename, false, $this->io, $this->config);
5041
});
5142

5243
$successCnt = $failureCnt = 0;
@@ -62,7 +53,7 @@ protected function fetchWithPrestissimo($version, $destination) {
6253
$failureCnt += $result['failureCnt'];
6354
if ($this->progress) {
6455
foreach ($result['urls'] as $url) {
65-
$this->io->writeError(" <comment>$successCnt/$totalCnt</comment>:\t$url", true, \Composer\IO\IOInterface::VERBOSE);
56+
$this->io->writeError(" <comment>$successCnt/$totalCnt</comment>:\t$url", true);
6657
}
6758
}
6859
} while ($multi->remain());

0 commit comments

Comments
 (0)