I have the following in a Chef recipe:

```
cookbook_file '/etc/yum.repos.d/wandisco-svn.repo' do
  source 'wandisco-svn.repo'
end

execute 'yum clean all'

package 'subversion' do
  action :install
end

```

After provisioning the server with Chef, the wrong version of Subversion is installed (an old version from the other yum repos). I can immediately run `yum list subversion` and see the correct version is available.

If I do the above manually (create the file, run a `yum clean all`, and run `yum install subversion`), the correct version is installed.

Why doesn't the above code work correctly?