core: Ignore if temporary box file doesn't exist when adding
This commit is contained in:
parent
666b270e0b
commit
b6259c2ae9
|
@ -340,7 +340,11 @@ module Vagrant
|
||||||
# so we can resume the download later.
|
# so we can resume the download later.
|
||||||
if !@download_interrupted
|
if !@download_interrupted
|
||||||
@logger.debug("Deleting temporary box: #{box_url}")
|
@logger.debug("Deleting temporary box: #{box_url}")
|
||||||
box_url.delete if 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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue