Bug 424741

Summary: disable repo after packages was listed tracebacks
Product: Red Hat Enterprise Linux 5 Reporter: Jan Hutař <jhutar>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.1   
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: 2009-03-25 02:24:57 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description Jan Hutař 2007-12-14 03:37:25 EST
Description of problem:
When I try to disable repo after packages was listed using yum shell, I get 
traceback


Version-Release number of selected component (if applicable):
3.0.1-5.el5


How reproducible:
always


Steps to Reproduce:
1. # yum --noplugins -d10 -e10 shell
2. > list available
3. > repo disable regular022
  
Actual results:
# yum --noplugins -d10 -e10 shell
Yum Version: 3.0.1
COMMAND: yum --noplugins -d10 -e10 
Installroot: /
No argument to shell
Setting up Yum Shell
Reading Local RPMDB
> list available
Yum Version: 3.0.1
COMMAND: list available
Installroot: /
Ext Commands:

   available
Setting up repositories
Reading repository metadata in from local files
Setting up Package Sacks
Available Packages
test-obsoleted.i386                      0.1-1                  regular011      
test-obsoletes.i386                      0.1-1                  regular011      
test-regular.i386                        0.2-2                  regular022      
> repo disable regular022
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 102, in main
    result, resultmsgs = do()
  File "/usr/share/yum-cli/cli.py", line 336, in doShell
    yumshell.cmdloop()
  File "/usr/lib/python2.4/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/share/yum-cli/shell.py", line 290, in do_repo
    self.base.repos._selectSackType()
AttributeError: RepoStorage instance has no attribute '_selectSackType'


Expected results:
I'm able to disable repo after packages was listed in yum shell


Additional info:
Repository and packages used for the testing are common, created with 
createrepo and completely useable with "yum [options]"