Bug 1115483
Summary: | RFE: Allow change of personality in rpm-python | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miroslav Suchý <msuchy> |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | ffesti, jzeleny, novyjindrich, packaging-team-maint, pmatilai, rvokal |
Target Milestone: | --- | Keywords: | Upstream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-28 09:53:46 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1111147 |
Description
Miroslav Suchý
2014-07-02 12:47:34 UTC
Hmm, I was about to say "just call rpm.reloadConfig()" but that wont work, apparently it doesn't reset *all* the internal hw detection state foobar. Which means its not doing its work properly... I'll have a look. Fixed upstream in the sense that rpm.reloadConfig() does a full reconfigure, previously the default machine data was only calculated on the very first call to rpmReadConfigFiles() which in python case occurs at module import. You'll still need a manual rpm.reloadConfig() when messing with personalities though, so whether the "official fix" is any better than your workaround ... depends I guess. Oops, forgot to link the fix: http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=4ff89adb0dcabd86afc0230c4e8ef98c5f7cdc65 Closing. Please reopen if you need this to go into an update. |