Don't delete package file if package output exists
This commit is contained in:
parent
0b02deb37a
commit
5bf4efe071
|
@ -38,8 +38,10 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
def recover(env)
|
def recover(env)
|
||||||
# Cleanup any packaged files if the packaging failed at some point.
|
unless env["vagrant.error"].is_a?(Errors::PackageOutputExists)
|
||||||
File.delete(tar_path) if File.exist?(tar_path)
|
# Cleanup any packaged files if the packaging failed at some point.
|
||||||
|
File.delete(tar_path) if File.exist?(tar_path)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def files_to_copy
|
def files_to_copy
|
||||||
|
|
Loading…
Reference in New Issue