| Summary: | [RFE] Allow Sack arch option to be "any" or not set in libsolv. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tyrone Abdy <tabdy> | ||||
| Component: | libdnf | Assignee: | rpm-software-management | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | jmracek, mluscon, packaging-team-maint, RadekHolyPublic, rpm-software-management, tabdy, vmukhame | ||||
| Target Milestone: | --- | Keywords: | Triaged | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-02-08 15:17:08 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: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1378253 | ||||||
| Attachments: |
|
||||||
|
Description
Tyrone Abdy
2016-09-30 04:41:51 UTC
does `hawkey.Sack(arch="ppc")` work for you or you really need ALL (ANY) architectures? Yeah in this circumstance hawkey.Sack(arch='ppc') would work, but as we use rpmdeplint (tool we work on) to determine whether a package can be installed without installing it on the host machine but based on repository constraints (which could have multiple arches in the repo). This means that we'd have to know all the possible architectures of the rpms within a repository before querying it. I tested a compile of hawkey without the set_poolarch used and it successfully works with libsolv. Created attachment 1208690 [details]
all_arch option for hawkey/libdnf sack with tests patch.
Adding in a patch for the requested RFE. If you would like this submitted elsewhere I am more than happy to accommodate.
Made couple of fixes and submitted PR: https://github.com/rpm-software-management/libhif/pull/200 |