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:
parent
ac4243d85e
commit
b8394f7e6a
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue