Red Hat Bugzilla – Bug 436159
includepkgs is ignored
Last modified: 2014-01-21 18:02:05 EST
Description of problem:
I have some repos in my yum.conf from which I only select a few packages. As of
yesterday, yum attempts to install various "updates" from them that it shouldn't
even see. The problem is not fixed in today's yum.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Add the following to a rawhide configuration:
2.yum install distcc
It succeeds in installing distcc from the repository.
The package should have been excluded.
I actually have distcc* enabled and it's other packages from other repositories
that are being replaced, but this was the simplest example I could come up with.
This is fixed upstream, it was a bad optimisation here is the patch:
diff --git a/yum/__init__.py b/yum/__init__.py
index cd449db..1acadf1 100644
@@ -870,7 +870,7 @@ class YumBase(depsolve.Depsolve):
if len(includelist) == 0:
- pkglist = self.pkgSack.returnPackages(repo.id, patterns=includelist)
+ pkglist = self.pkgSack.returnPackages(repo.id)
exactmatch, matched, unmatched = \
parsePackages(pkglist, includelist, casematch=1)