I have two repositories enabled: Fedora repository and a local repository from Fedora DVD. The local repositories has this option "cost=500". Because of this, when a package is available both in Fedora and Fedora DVD repositories, package kit show show Fedora DVD repository as the package's repository and should try to install the package from the DVD repository with the lower cost (as yum itself does). But currently (latest F13 package), it tries to install from Fedora repository despite the higher cost of this repository.
Is it exactly the same package on the dvd and in the repos?
Yes.
Created attachment 38921 [details] [review] select the repository to install the package from with the same ordering as yum command line Well, I decided to see if I can discover the problem, and I think the attached patch (against PackageKit-yum-0.6.6-2.fc13.x86_64's yumFilter.py) fixes the problem. The problem relied in the _do_newest_filtering function.
Hedayat, the patch looks good. You've done quite a few PK patches now that I've applied, would you like direct commit access? If so, please create an account on http://gitorious.org and send me your username. If you would rather not, that's fine too, and I can commit your patch for you. Thanks.
Thanks for the offer. I would like too. My gitorious account username is hedayat.
Please commit your patch and push to git master. As it's a yum-related change, please prefix the commit message with "yum: " and then it gets sorted in the release notes into the right section. Thanks dude.
Pushed to master commit a1227392324437f59869ef312dff8017daed07db Author: Hedayat Vatankhah <hedayat@grad.com> Date: Fri Sep 24 12:46:59 2010 +0330 yum: select the repository with the higher priority when a package exists in
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.