Use Upgrading for package installs too
parent
9609729de7
commit
7e142b5d6b
|
@ -271,7 +271,7 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
|
||||||
$from = $initial->getFullPrettyVersion();
|
$from = $initial->getFullPrettyVersion();
|
||||||
$to = $target->getFullPrettyVersion();
|
$to = $target->getFullPrettyVersion();
|
||||||
|
|
||||||
$actionName = VersionParser::isUpgrade($initial->getVersion(), $target->getVersion()) ? 'Updating' : 'Downgrading';
|
$actionName = VersionParser::isUpgrade($initial->getVersion(), $target->getVersion()) ? 'Upgrading' : 'Downgrading';
|
||||||
$this->io->writeError(" - " . $actionName . " <info>" . $name . "</info> (<comment>" . $from . "</comment> => <comment>" . $to . "</comment>): ", false);
|
$this->io->writeError(" - " . $actionName . " <info>" . $name . "</info> (<comment>" . $from . "</comment> => <comment>" . $to . "</comment>): ", false);
|
||||||
|
|
||||||
$this->remove($initial, $path, false);
|
$this->remove($initial, $path, false);
|
||||||
|
|
|
@ -165,7 +165,7 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
|
||||||
$to = $target->getFullPrettyVersion();
|
$to = $target->getFullPrettyVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
$actionName = VersionParser::isUpgrade($initial->getVersion(), $target->getVersion()) ? 'Updating' : 'Downgrading';
|
$actionName = VersionParser::isUpgrade($initial->getVersion(), $target->getVersion()) ? 'Upgrading' : 'Downgrading';
|
||||||
$this->io->writeError(" - " . $actionName . " <info>" . $name . "</info> (<comment>" . $from . "</comment> => <comment>" . $to . "</comment>): ", false);
|
$this->io->writeError(" - " . $actionName . " <info>" . $name . "</info> (<comment>" . $from . "</comment> => <comment>" . $to . "</comment>): ", false);
|
||||||
|
|
||||||
$urls = $this->prepareUrls($target->getSourceUrls());
|
$urls = $this->prepareUrls($target->getSourceUrls());
|
||||||
|
|
|
@ -93,7 +93,7 @@ class MetapackageInstaller implements InstallerInterface
|
||||||
$name = $target->getName();
|
$name = $target->getName();
|
||||||
$from = $initial->getFullPrettyVersion();
|
$from = $initial->getFullPrettyVersion();
|
||||||
$to = $target->getFullPrettyVersion();
|
$to = $target->getFullPrettyVersion();
|
||||||
$actionName = VersionParser::isUpgrade($initial->getVersion(), $target->getVersion()) ? 'Updating' : 'Downgrading';
|
$actionName = VersionParser::isUpgrade($initial->getVersion(), $target->getVersion()) ? 'Upgrading' : 'Downgrading';
|
||||||
$this->io->writeError(" - " . $actionName . " <info>" . $name . "</info> (<comment>" . $from . "</comment> => <comment>" . $to . "</comment>)");
|
$this->io->writeError(" - " . $actionName . " <info>" . $name . "</info> (<comment>" . $from . "</comment> => <comment>" . $to . "</comment>)");
|
||||||
|
|
||||||
$repo->removePackage($initial);
|
$repo->removePackage($initial);
|
||||||
|
|
|
@ -691,7 +691,7 @@ composer https://github.com/old/url (push)
|
||||||
$ioMock = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
|
$ioMock = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
|
||||||
$ioMock->expects($this->at(0))
|
$ioMock->expects($this->at(0))
|
||||||
->method('writeError')
|
->method('writeError')
|
||||||
->with($this->stringContains('Updating'));
|
->with($this->stringContains('Upgrading'));
|
||||||
|
|
||||||
$this->fs->ensureDirectoryExists($this->workingDir.'/.git');
|
$this->fs->ensureDirectoryExists($this->workingDir.'/.git');
|
||||||
$downloader = $this->getDownloaderMock($ioMock, null, $processExecutor);
|
$downloader = $this->getDownloaderMock($ioMock, null, $processExecutor);
|
||||||
|
|
Loading…
Reference in New Issue