Bug 847006
| Summary: | RFE: List requires of a package | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Martin Gracik <mgracik> |
| Component: | hawkey | Assignee: | Ales Kozumplik <akozumpl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | akozumpl, dmach, jzeleny |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | hawkey-0.3.1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-12-20 15:58:54 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: | |||
|
Description
Martin Gracik
2012-08-09 12:35:31 UTC
The main trick here is how to represent the reqiremennts list to the user. On the inside each element will encapsulate a libsolv Reldep. On the outside I am thinking two representations: a string ("foo < 3.4") and a Query that returns all provides of the Reldep (which is what many Requirement searching people are really after).
Thinking about this, the list_of_requires() function will be a function over HyPackage. That makes for a slight annoyance since hawkey/package.h does not include hawkey/query.h and therefore can not build Queries. Perhaps introducing a query_builder.h include file seeing both query.h and package.h? Discussed this with Dan Mach again today: projects planned to use hawkey to evaluate packages in a repo (for instance a new repoquery) will need quite fine granularity in how the dependency relations are presented to the API client. Hawkey will have to expose the Reldep structure from libsolv in some way. Also, operations will be needed to turn the Reldep into a set of packages matching it. Reldeps and querying over them has been mplemented on master now: 6c4e926, ef08e94, 58e2ea5 and 9d595f6. A sample on how to use it: https://github.com/akozumpl/hawkey/blob/9d595f6fb18af3abd3a159e2277630db02948ad3/tests/python/tests/test_query.py#L134 hawkey-0.3.1-2.git6f9df85.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/hawkey-0.3.1-2.git6f9df85.fc18 Package hawkey-0.3.1-2.git6f9df85.fc18, dnf-0.2.15-3.git5d85f6b.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing hawkey-0.3.1-2.git6f9df85.fc18 dnf-0.2.15-3.git5d85f6b.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-17800/dnf-0.2.15-3.git5d85f6b.fc18,hawkey-0.3.1-2.git6f9df85.fc18 then log in and leave karma (feedback). hawkey-0.3.1-2.git6f9df85.fc18, dnf-0.2.15-3.git5d85f6b.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |