CHANGELOG

This commit is contained in:
Mitchell Hashimoto 2013-07-16 16:34:53 -07:00
parent 51d4cc4068
commit 7adffcb880
2 changed files with 5 additions and 4 deletions

View File

@ -18,6 +18,8 @@ IMPROVEMENTS:
BUG FIXES:
- VBoxManage or any other executable missing from PATH properly
reported. Regression from 1.2.2. [GH-1928]
- Boxes downloaded as part of `vagrant up` are now done so _prior_ to
config validation. This allows Vagrantfiles to references files that
may be in the box itself. [GH-1061]

View File

@ -25,13 +25,12 @@ module Vagrant
end
def initialize(*command)
progname = command[0]
@options = command.last.is_a?(Hash) ? command.pop : {}
@command = command
@command = command.dup
@command[0] = Which.which(@command[0]) if !File.file?(@command[0])
if !@command[0]
raise Errors::CommandUnavailableWindows, file: progname if Platform.windows?
raise Errors::CommandUnavailable, file: progname
raise Errors::CommandUnavailableWindows, file: command[0] if Platform.windows?
raise Errors::CommandUnavailable, file: command[0]
end
@logger = Log4r::Logger.new("vagrant::util::subprocess")