Bug 847006 - RFE: List requires of a package
Summary: RFE: List requires of a package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hawkey
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-09 12:35 UTC by Martin Gracik
Modified: 2014-09-30 23:40 UTC (History)
3 users (show)

Fixed In Version: hawkey-0.3.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-20 15:58:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Martin Gracik 2012-08-09 12:35:31 UTC
It would be nice if the hawkey package object had a property with a list of all of it's requires.

Comment 1 Ales Kozumplik 2012-08-09 14:36:14 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).

Comment 2 Ales Kozumplik 2012-09-21 11:31:38 UTC
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?

Comment 3 Ales Kozumplik 2012-10-23 14:00:42 UTC
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.

Comment 4 Ales Kozumplik 2012-11-06 15:35:09 UTC
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

Comment 5 Fedora Update System 2012-11-08 13:37:40 UTC
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

Comment 6 Fedora Update System 2012-11-09 03:18:57 UTC
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).

Comment 7 Fedora Update System 2012-12-20 15:58:56 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.