Ensure apt partial dirs are created _after_ the symlink is in place, otherwise we would not be able to properly detect whether a bucket is empty or not

This commit is contained in:
Fabio Rehm 2014-02-21 20:42:40 -03:00
parent ac4243d85e
commit b8394f7e6a
2 changed files with 2 additions and 2 deletions

View file

@ -12,8 +12,8 @@ module VagrantPlugins
return if @env[:cache_dirs].include?(guest_path)
comm.execute("mkdir -p /tmp/vagrant-cache/#{@name}/partial")
symlink(guest_path)
comm.execute("mkdir -p /tmp/vagrant-cache/#{@name}/partial")
else
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'APT')
end

View file

@ -12,8 +12,8 @@ module VagrantPlugins
return if @env[:cache_dirs].include?(guest_path)
comm.execute("mkdir -p /tmp/vagrant-cache/#{@name}/partial")
symlink(guest_path)
comm.execute("mkdir -p /tmp/vagrant-cache/#{@name}/partial")
else
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'apt-lists')
end