From 0fceed6ff40b23880b7276283f1152c14b1c2c93 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 23 Jan 2014 17:02:29 -0800 Subject: [PATCH] core: BoxAdd uses the proper path on Unix --- lib/vagrant/action/builtin/box_add.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index 11a42273b..246797532 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -310,8 +310,11 @@ module Vagrant # by trying to parse JSON! uri = URI.parse(d.source) if uri.scheme == "file" + url = uri.path + url = uri.opaque if Util::Platform.windows? + begin - File.open(uri.opaque, "r") do |f| + File.open(url, "r") do |f| BoxMetadata.new(f) end return true