Bug 421961
| Summary: | Traceback from yum-priorities when using non-CLI based frontends | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zdenek Kabelac <zkabelac> |
| Component: | yum-utils | Assignee: | Seth Vidal <skvidal> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | ben.engbers, biggles58, chrisbullas, dacdsdep, daniel.clarke.42, danieldk, debabrata.deb, dietmar-s, fedora-bugs, gc1111, geek, geert, gilbrice, guy.leaver, hcgp, james.antill, jeff, josemgil78, jukka.ahlgren, ketahazure, linuxproblemer, mask, max, michael_d_duvall, nicolae, oldmantrafford, olof.tangrot, pete6150, pfuhrer, pmatilai, postmaster, pravat.borisut, red.hell, roger, sam.fortson, stefanescuradu, stefan, talpa_sai, tim.lauridsen, varma.santhosh, xristian_believer, yesno, yuerlong, zazo5100 |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 1.1.9-2.fc7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2007-12-28 17:15:00 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: | |||
Adding daniel so he knows what's going on with this plugin. proposed patch:
diff --git a/plugins/priorities/priorities.py b/plugins/priorities/priorities.py
index fd33591..2d6ca5a 100644
--- a/plugins/priorities/priorities.py
+++ b/plugins/priorities/priorities.py
@@ -82,10 +82,11 @@ def config_hook(conduit):
def exclude_hook(conduit):
global only_samearch
+ only_samearch = False
# Check whether the user specified the --samearch option.
opts, commands = conduit.getCmdLine()
- if opts.samearch:
+ if opts and opts.samearch:
only_samearch = True
cnt = 0
The second change seems ok to me, we have that in CentOS 5.1, but I forgot to open a bug report for that in the yum bugzilla (sorry!). Wrt. to the first change: only_samearch is potentially set before through a confBool in the config_hook. okay - I applied the second patch, not the first. closing as upstream *** Bug 426491 has been marked as a duplicate of this bug. *** *** Bug 426709 has been marked as a duplicate of this bug. *** *** Bug 292561 has been marked as a duplicate of this bug. *** *** Bug 426716 has been marked as a duplicate of this bug. *** *** Bug 426725 has been marked as a duplicate of this bug. *** *** Bug 426726 has been marked as a duplicate of this bug. *** *** Bug 426734 has been marked as a duplicate of this bug. *** *** Bug 426787 has been marked as a duplicate of this bug. *** For those hitting this, I've put the fixed file up at http://katzj.fedorapeople.org/priorities.py. You can download this and copy it to /usr/lib/yum-plugins/priorities.py and it should fix things. *** Bug 426811 has been marked as a duplicate of this bug. *** *** Bug 426815 has been marked as a duplicate of this bug. *** *** Bug 426819 has been marked as a duplicate of this bug. *** *** Bug 426821 has been marked as a duplicate of this bug. *** *** Bug 426824 has been marked as a duplicate of this bug. *** *** Bug 426826 has been marked as a duplicate of this bug. *** *** Bug 365421 has been marked as a duplicate of this bug. *** *** Bug 426856 has been marked as a duplicate of this bug. *** *** Bug 426870 has been marked as a duplicate of this bug. *** *** Bug 426843 has been marked as a duplicate of this bug. *** *** Bug 426900 has been marked as a duplicate of this bug. *** *** Bug 426921 has been marked as a duplicate of this bug. *** *** Bug 426693 has been marked as a duplicate of this bug. *** Given the clearly widespread nature of the bug, can we assume that an updated rpm will soon be available in fedora updates? thanks See: https://admin.fedoraproject.org/updates/yum-utils ... I've requested they go straight to stable, so as soon as they are approved it'll fix itself. Jeremy was also talking about doing pirut/pup update, as that's where people think the problem is. Is there a ETA for the rpm fix mentioned for this? Also, since this kills the graphical Software Updater, I assume people would have to "yum update yum-utils" on the command line when the fix is ready? Last, why is the priority/severity "low" when it seems like a pretty major breakage? (Just trying to understand.) Thanks. *** Bug 426936 has been marked as a duplicate of this bug. *** yum-utils-1.1.9-2.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report. yum-utils-1.1.9-2.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 426940 has been marked as a duplicate of this bug. *** Success on FC8! Thank you. :) *** Bug 426981 has been marked as a duplicate of this bug. *** *** Bug 426982 has been marked as a duplicate of this bug. *** *** Bug 427002 has been marked as a duplicate of this bug. *** *** Bug 427008 has been marked as a duplicate of this bug. *** *** Bug 412281 has been marked as a duplicate of this bug. *** bug fixed with patch of comment #13 *** Bug 427045 has been marked as a duplicate of this bug. *** *** Bug 294131 has been marked as a duplicate of this bug. *** *** Bug 427094 has been marked as a duplicate of this bug. *** *** Bug 427095 has been marked as a duplicate of this bug. *** *** Bug 427125 has been marked as a duplicate of this bug. *** *** Bug 426894 has been marked as a duplicate of this bug. *** *** Bug 427179 has been marked as a duplicate of this bug. *** *** Bug 427188 has been marked as a duplicate of this bug. *** *** Bug 427305 has been marked as a duplicate of this bug. *** yum-utils-1.1.10-1.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum-utils' yum-utils-1.1.10-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum-utils' *** Bug 428240 has been marked as a duplicate of this bug. *** yum-utils-1.1.10-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report. yum-utils-1.1.10-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 429409 has been marked as a duplicate of this bug. *** *** Bug 429470 has been marked as a duplicate of this bug. *** *** Bug 430332 has been marked as a duplicate of this bug. *** *** Bug 430443 has been marked as a duplicate of this bug. *** *** Bug 431853 has been marked as a duplicate of this bug. *** *** Bug 432072 has been marked as a duplicate of this bug. *** |
Description of problem: Version-Release number of selected component (if applicable): How reproducible: Starting pirut (after the latest greatest update when halve of Fedora basicaly got broken) gives me this - Component: pirut Summary: TBaa979ac4 priorities.py:88:exclude_hook:AttributeError: 'NoneType' object has no attribute 'samearch' Traceback (most recent call last): File "/usr/sbin/pirut", line 483, in <module> main() File "/usr/sbin/pirut", line 479, in main pm.run() File "/usr/sbin/pirut", line 407, in run self.doRefresh() File "/usr/sbin/pirut", line 423, in doRefresh self.doRefreshRepos(self._onlyrepo) File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 339, in doRefreshRepos self.reposSetup(pbar, thisrepo) File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 303, in reposSetup self.doTsSetup() File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 72, in doTsSetup return self._getTs() File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 85, in _getTs self._getTsInfo() File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 91, in _getTsInfo self._tsInfo.setDatabases(self.rpmdb, self.pkgSack) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 529, in <lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 396, in _getSacks self.plugins.run('exclude') File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 169, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/priorities.py", line 88, in exclude_hook if opts.samearch: AttributeError: 'NoneType' object has no attribute 'samearch' Local variables in innermost frame: conduit: <yum.plugins.MainPluginConduit instance at 0x1169a70> commands: None opts: None Steps to Reproduce: 1. 2. 3. Actual results: Expected results: 100% working installation tool all the time ?? Additional info: