Bug 331091
Summary: | python-ruledispatch makes anaconda fail | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Warren Togami <wtogami> | ||||
Component: | anaconda | Assignee: | Chris Lumens <clumens> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | CC: | a.badger | ||||
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: | 2008-01-22 18:32:17 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 188611, 235706 | ||||||
Attachments: |
|
Description
Warren Togami
2007-10-14 01:19:18 UTC
--- anaconda.orig 2007-11-20 13:16:39.000000000 -0500 +++ anaconda 2007-11-20 13:20:49.000000000 -0500 @@ -301,7 +301,7 @@ sys.path.append('textw') sys.path.append('iw') else: - sys.path.append('/usr/lib/anaconda') + sys.path.insert(0,'/usr/lib/anaconda') sys.path.append('/usr/lib/anaconda/textw') sys.path.append('/usr/lib/anaconda/iw') This makes it work, although it is messy in the others append other private paths and anaconda needs to be thoroughly tested to be sure this doesn't break anything. This breaks the RHupdates mechanism. What needs to happen is that the /usr/lib/anaconda paths be inserted into sys.path after all the updates paths. I'm not sure what the "updates paths" consist of, but the code in the following patch might be sufficient if I've guessed right. It seems a bit hacky, though. A cleaner way to do this would be to make an anaconda module (either in python_sitearch or as a subdirectory of %{_libdir}/anaconda) and put all the code in there. Then the code will be properly namespaced and you'll be able to write unambiguous import statements like:: from anaconda import dispatch Created attachment 291858 [details]
Patch to place /usr/lib/anaconda after RHUpdate paths in sys.path
Committed, with some slight modifications. Thanks for the patch. |