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 e6464d1951
commit b3b63ab846
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) return if @env[:cache_dirs].include?(guest_path)
comm.execute("mkdir -p /tmp/vagrant-cache/#{@name}/partial")
symlink(guest_path) symlink(guest_path)
comm.execute("mkdir -p /tmp/vagrant-cache/#{@name}/partial")
else else
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'APT') @env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'APT')
end end

View file

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