Bug 436159 - includepkgs is ignored
includepkgs is ignored
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-03-05 12:55 EST by Alexandre Oliva
Modified: 2014-01-21 18:02 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-03-05 13:24:52 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Alexandre Oliva 2008-03-05 12:55:16 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):

How reproducible:
Every time

Steps to Reproduce:
1.Add the following to a rawhide configuration:

2.yum install distcc
Actual results:
It succeeds in installing distcc from the repository.

Expected results:
The package should have been excluded.

Additional info:
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.
Comment 1 James Antill 2008-03-05 13:24:52 EST
 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
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -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)

Note You need to log in before you can comment on or make changes to this bug.