core: Ignore if temporary box file doesn't exist when adding

This commit is contained in:
Mitchell Hashimoto 2014-04-01 22:18:49 -07:00
parent 666b270e0b
commit b6259c2ae9
1 changed files with 5 additions and 1 deletions

View File

@ -340,7 +340,11 @@ module Vagrant
# so we can resume the download later.
if !@download_interrupted
@logger.debug("Deleting temporary box: #{box_url}")
begin
box_url.delete if box_url
rescue Errno::ENOENT
# Not a big deal, the temp file may not actually exist
end
end
end