Merge pull request #9968 from verheyenkoen/version-check-display-installed-version
Display current version in version check
This commit is contained in:
commit
0872609b59
|
@ -162,7 +162,7 @@ module Vagrant
|
||||||
ui = Vagrant::UI::Prefixed.new(env.ui, "vagrant")
|
ui = Vagrant::UI::Prefixed.new(env.ui, "vagrant")
|
||||||
if latest_version > installed_version
|
if latest_version > installed_version
|
||||||
@logger.info("new version of Vagrant available - #{latest_version}")
|
@logger.info("new version of Vagrant available - #{latest_version}")
|
||||||
ui.info(I18n.t("vagrant.version_upgrade_available", latest_version: latest_version))
|
ui.info(I18n.t("vagrant.version_upgrade_available", latest_version: latest_version, installed_version: installed_version))
|
||||||
env.ui.info("")
|
env.ui.info("")
|
||||||
else
|
else
|
||||||
@logger.debug("vagrant is currently up to date")
|
@logger.debug("vagrant is currently up to date")
|
||||||
|
|
|
@ -311,7 +311,7 @@ en:
|
||||||
Vagrant was unable to check for the latest version of Vagrant.
|
Vagrant was unable to check for the latest version of Vagrant.
|
||||||
Please check manually at https://www.vagrantup.com
|
Please check manually at https://www.vagrantup.com
|
||||||
version_upgrade_available: |-
|
version_upgrade_available: |-
|
||||||
A new version of Vagrant is available: %{latest_version}!
|
A new version of Vagrant is available: %{latest_version} (installed version: %{installed_version})!
|
||||||
To upgrade visit: https://www.vagrantup.com/downloads.html
|
To upgrade visit: https://www.vagrantup.com/downloads.html
|
||||||
|
|
||||||
version_upgrade_howto: |-
|
version_upgrade_howto: |-
|
||||||
|
|
Loading…
Reference in New Issue