Create apt bucket partial cache dir [GH-40]

This commit is contained in:
Fabio Rehm 2013-09-01 19:04:33 -03:00
parent 246ab52380
commit 0b13040888

View file

@ -16,7 +16,7 @@ module VagrantPlugins
@env[:cache_dirs] << guest_path
machine.communicate.tap do |comm|
comm.execute("mkdir -p /tmp/vagrant-cache/#{@name}")
comm.execute("mkdir -p /tmp/vagrant-cache/#{@name}/partial")
unless comm.test("test -L #{guest_path}")
comm.sudo("rm -rf #{guest_path}")
comm.sudo("mkdir -p `dirname #{guest_path}`")