Bug 231202 - yum shell crashes with 'config exclude'
yum shell crashes with 'config exclude'
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Depends On:
  Show dependency treegraph
Reported: 2007-03-06 14:02 EST by Carl Roth
Modified: 2014-01-21 17:57 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-03-07 17:09:05 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 Carl Roth 2007-03-06 14:02:17 EST
Description of problem:

If you use the 'config exclude' command after the yum shell has initialized (via
'install' or 'exclude) then the yum shell process crashes:

See the following command trace:

[1.2] (roth@theo:pts/7) $ sudo yum shell
Setting up Yum Shell
> upgrade
Setting up Upgrade Process
Setting up repositories
> config exclude kernel*
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
  File "/usr/share/yum-cli/yummain.py", line 94, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 356, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd,
  File "/usr/share/yum-cli/yumcommands.py", line 397, in doCommand
    return base.doShell()
  File "/usr/share/yum-cli/cli.py", line 334, 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 227, in do_config
AttributeError: RepoStorage instance has no attribute '_selectSackType'

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


How reproducible:


Steps to Reproduce:
Actual results:

Expected results:

Additional info:

The 'config exclude' command works as long as it's invoked *before* the
'upgrade' command.  This is somewhat annoying, since a common use case for 'yum
shell' is as follows:

  > upgrade
  > ts list
  OOPS, I don't want that package to be updated
  > ts reset
  > config exclude SOME-PACKAGE
  > upgrade
  > ts run
Comment 1 Jeremy Katz 2007-03-07 17:09:05 EST
Wow, that's been broken for a while and no one had noticed before now.  You can
fix it by just removing the calls to _selectSackType in
/usr/share/yum-cli/shell.py.  And I've committed the fix to upstream CVS

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