title: Why can I not install a package from a repo I just added using Chef?
body: <p>I have the following in a Chef recipe:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>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 <code>yum list subversion</code> and see the correct version is available.</p>
  
  <p>If I do the above manually (create the file, run a <code>yum clean all</code>, and run <code>yum install subversion</code>), the correct version is installed.</p>
  
  <p>Why doesn't the above code work correctly?</p>