Bug 244785

Summary: yum ignores the --disablerepo option
Product: [Fedora] Fedora Reporter: Matteo Corti <matteo>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 7CC: katzj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-19 12:45: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:

Description Matteo Corti 2007-06-19 06:48:38 UTC
Description of problem:
yum ignores the --disablerepo option

Version-Release number of selected component (if applicable):
yum-3.2.0-1.fc7

How reproducible:
always

Steps to Reproduce:
1. yum --disablerepo=REPONAME
  
Actual results:
repository is not excluded

Expected results:
repository should be ignored

Additional info:

Example:
# yum --disablerepo=skype upgrade
Loading "priorities" plugin
Loading "presto" plugin
Loading "dellsysidplugin" plugin
Loading "installonlyn" plugin
Loading "downloadonly" plugin
Loading "skip-broken" plugin
Loading "fastestmirror" plugin
Loading "fedorakmod" plugin
Loading "protectbase" plugin
Setting up Presto


Cannot open/read repodata/repomd.xml file for repository: skype

In this case the unreachable repository (skype) should be ignored since it was
disabled from the command line

setting enable=0 in the configuration file is also not working

Running with -d 9 does not give more information:

# yum -d 9 --disablerepo=skype upgrade
Loading "priorities" plugin
Loading "presto" plugin
Loading "dellsysidplugin" plugin
Loading "installonlyn" plugin
Loading "downloadonly" plugin
Loading "skip-broken" plugin
Loading "fastestmirror" plugin
Loading "fedorakmod" plugin
Loading "protectbase" plugin
Running "config" handler for "priorities" plugin
Running "config" handler for "presto" plugin
Running "config" handler for "installonlyn" plugin
Running "config" handler for "downloadonly" plugin
Running "config" handler for "skip-broken" plugin
Running "config" handler for "protectbase" plugin
Running "postconfig" handler for "dellsysidplugin" plugin
Running "init" handler for "dellsysidplugin" plugin
Running "init" handler for "fastestmirror" plugin
Running "init" handler for "fedorakmod" plugin
Loading Fedora Extras kernel module support.
Running "postreposetup" handler for "presto" plugin
Setting up Presto


Cannot open/read repodata/repomd.xml file for repository: skype

Comment 1 Jeremy Katz 2007-06-19 12:29:12 UTC
I believe this is due to some fun with the presto plugin -- can you try
disabling it and see if that improves things?  If so, then this will be resolved
in yum 3.2.1

Comment 2 Matteo Corti 2007-06-19 12:36:48 UTC
I removed the presto plugin and everything works as expected. I should have
noticed that the problem was accurring too early and that the probable cause was
a plugin.

Thanks

Comment 3 Jeremy Katz 2007-06-19 12:45:56 UTC
Well, to be fair, what presto is doing _should_ work.  It's just a yum bug
that's keeping that from being the case.  But good to know; will be fixed when
we push the yum 3.2.1 update later this week