Bug 234761
Summary: | yum shell 'config exclude' does not work | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Carl Roth <roth> | ||||||
Component: | yum | Assignee: | James Antill <james.antill> | ||||||
Status: | CLOSED CANTFIX | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 6 | Keywords: | Reopened | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 3.0.6 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2007-08-03 19:33:56 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Carl Roth
2007-04-01 16:53:23 UTC
Created attachment 151391 [details]
command output from 'yum shell'
This seems to work better with yum 3.0.6 Created attachment 153458 [details]
command output from 'yum shell'
How do you define "better" here? I upgrade to the latest yum-3.0.6-1.fc6, and the behavior is essentially the same. See the attached command log (153458). I can't replicate this on 3.0.X from cvs and the changes from there to 3.0.6 are pretty small. is there anything else at play here? Are you sure you only have one version of yum installed and nothing in your python lookup paths. This was an interesting bug to track down. I scrubbed my yum environment and isolated the issue to the particular way I have my yum.conf and yum repositories configured w.r.t the 'exclude' option. * I set 'reposdir' in yum.conf to point to multiple directories of repo files. I do this so that I can maintain a directory of dynamic repository config files (to support laptop roaming etc. and other userland edits) [main] ... reposdir=/etc/yum.repos.d, /srv/yum/repos.d ... * I list the same YUM channel ('updates' in this case) in multiple repository files spread across multiple directories. for example: /etc/yum/fedora-updates.repo /srv/yum/repos.d/updates.repo Both files refer to the 'updates' channel; the second 'updates.repo' file contains incremental configuration options ('enabled', 'exclude', 'proxy', etc.). Yum is supposed to scour each of the directories and overlay the repository settings, and this works for the most part. * I list the 'exclude' option in each copy of the 'updates' channel definition. My goal here was to specify an updated 'exclude' list in a repository config file that's sourced later in the process, so that I could override any previous settings. To make a long story short, listing the 'exclude' setting multiple times seems to mess with the yum shell. If I use the same 'exclude' list, the 'config exclude' shell command works: In /etc/yum.repos.d/fedora-updates.repo: [updates] ... exclude=kernel-* qemu-* ... In /srv/yum/repos.d/updates.repo: [updates] ... exclude=kernel-* qemu-* If I try to override the 'exclude' setting, it doesn't work: In /etc/yum.repos.d/fedora-updates.repo: [updates] ... exclude=kernel-* qemu-* ... In /srv/yum/repos.d/updates.repo: [updates] ... exclude=any-package-name Can some one comment on the expected behavior of using 'reposdir' to overlay repository settings? Is this supposed to work? Is the 'updates' tag handled differently? mulitiple repos with the same [name] are not allowed and the results will be erratic, at best. this is a cantfix, |