core: only check for box existence if not force [GH-2757]

This commit is contained in:
Mitchell Hashimoto 2014-01-09 15:59:21 -08:00
parent a48ef2ec97
commit 5fd8988835
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ BUG FIXES:
syntax errors.
- core: Plugins that fork within certain actions will no longer hang
indefinitely. [GH-2756]
- commands/box: Box add `--force` works with `--provider` flag. [GH-2757]
- commands/plugin: Plugin installation will fail if dependencies conflict,
rather than at runtime.
- guests/redhat: Set hostname to FQDN, per the documentation for RedHat.

View File

@ -33,7 +33,7 @@ module Vagrant
# Determine if we already have the box before downloading
# it again. We can only do this if we specify a format
if box_formats
if box_formats && !env[:box_force]
begin
if env[:box_collection].find(box_name, box_formats)
raise Errors::BoxAlreadyExists,