title: rpm install package with obsolete error
body: <p>I hit one problem during install some dependency packages.</p>
  
  <p>I have two yum repo, repo1 and repo2 both provide one dependency
  For example, one is <strong>python-XXXXX</strong>, the other is <strong>python2-XXXXX</strong>
  They have different version info</p>
  
  <p>python-XXXXX was built by own and it is <code>1.5.0</code>. And the other one is default repo own and it is <code>2.6.0</code></p>
  
  <p>When install upstream package, it will install this dependency.</p>
  
  <blockquote>
    <p>Upstream require &lt; 1.6.0</p>
  </blockquote>
  
  <p>So I assume it will try to find lower version one.</p>
  
  <p>But during installation, I found seemed it try to install higher version one.</p>
  
  <blockquote>
    <p>[...]
    Package python-oslo-i18n is obsoleted by python2-oslo-i18n, but obsoleting package does not provide for requirements
    --> Finished Dependency Resolution</p>
    
    <p>Error: Package: python-oslo-messaging-1.8.3-1.noarch (repo1)</p>
    
    <p>Requires: python-oslo-i18n &lt; 1.6.0</p>
    
    <p>Available: python-oslo-i18n-1.5.0-2.noarch (repo1)
               python-oslo-i18n = 1.5.0-2</p>
    
    <p>Installing: python2-oslo-i18n-2.6.0-1.el7_1.1.noarch (repo2)
                python-oslo-i18n = 2.6.0-1.el7_1.1</p>
  </blockquote>
  
  <p>I guess keyword Obsolete has been defined in <strong>python2-XXXXX</strong> so during installation, it will try to remove correct one.
  But I did not understand why it can not find correct one</p>
  
  <p>Does anyone know how to fix this problem?
  I can work around by disable repo which contain higher version one.</p>
  
  <p>But I still need that repo later.</p>
  
  <p>Thanks!</p>