Bug 131381
Summary: | while upgrading to rawhide-20040831, yum crashed; after crash, yum refuses to run | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Daniel Reed <djr> | ||||
Component: | yum | Assignee: | Jeff Johnson <jbj> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | katzj, russell | ||||
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: | 2004-09-01 13:52:06 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
Daniel Reed
2004-08-31 19:42:46 UTC
Downgrading yum to 2.0.7-3 allows yum to function. After re-upgrading to 2.1.0-1 by itself, the problem reappears. - yum updated itself and then tried to load things from the in-memory program from the now-erased yum 2.0.7. That's breakage that I _know_ is going to occur going to this version. update yum first then you can update everything else. check-update isn't implemented in yum 2.1.0 yet, - run 'yum list updates' instead I need to catch the silly error, though. Created attachment 103336 [details]
Fix to yum-2.1.0 to stop it from throwing an error executing "yum clean"
I got a very similar error when running "yum clean" with the new version. This
turned out to be because YumBaseCli.doCommands() returns None when the command
is "clean", rather than the number and string specified in the function docs.
The attached patch fixes the problem by returning the apropriate value for
success. "yum clean" now runs without throwing an error, but does not appear to
clean anything up.
It is possible that the error reported above when using "check-update" could be
partly solved by adding an else clause to the end of YumBaseCli.doCommands() as
this function also return None if none of the elif: clauses are matched.
it's fixed in cvs. *** Bug 131570 has been marked as a duplicate of this bug. *** |