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
e6464d1951
commit
b3b63ab846
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