Bug 424741 - disable repo after packages was listed tracebacks
disable repo after packages was listed tracebacks
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: James Antill
Depends On:
  Show dependency treegraph
Reported: 2007-12-14 03:37 EST by Jan Hutař
Modified: 2009-03-25 02:24 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-03-25 02:24:57 EDT
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 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 

Version-Release number of selected component (if applicable):

How reproducible:

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:

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 ?
  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
  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
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]"

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