Bug 910072
| Summary: | yum: assertion error: assert basecmd in ('erase', 'remove'), basecmd | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mikolaj Izdebski <mizdebsk> |
| Component: | yum | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 18 | CC: | admiller, ffesti, james.antill, packaging-team-maint, tim.lauridsen, zpavlas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-19 20:15:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
"yum autoremove" is mostly used with no arguments. When provided with some, code defaults to "yum remove" path, and then this assert fails. There are three options: 1) Relax the assert. "yum autoremove foo" is an alias to "yum remove foo". 2) Barf an error that "autoremove" expects no args. 3) Remove only a subset of packages "yum autoremove" would remove. Probably closest to the expected behavior. *** This bug has been marked as a duplicate of bug 882484 *** |
Assertion error # yum -y --nogpgcheck --noplugins --releasever rawhide --installroot /chroot autoremove systemd Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 319, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 144, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 485, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", line 750, in doCommand ret = base.erasePkgs(extcmds, pos=pos, basecmd=basecmd) File "/usr/share/yum-cli/cli.py", line 1081, in erasePkgs assert basecmd in ('erase', 'remove'), basecmd AssertionError: autoremove # rpm -q yum yum-3.4.3-49.fc18.noarch