Bug 1016708
Summary: | python-solv api broke between 0.0.0-17 in F18 and 0.3.0 in F19 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | John Dulaney <jdulaney> |
Component: | libsolv | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | akozumpl, bwalker, mls, packaging-team-maint, pnemade |
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: | 2013-10-08 16:53:45 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
John Dulaney
2013-10-08 14:48:14 UTC
Hi John, thank you for the report. I don't see we package 'depcheck.py' in python-solv, please reopen this if we do. The libsolv upstream does not guarantee API compatibility between patchlevels and even less so between minor versions. I'm afraid there is not much I can do here, except to hope that the API will be more stable from now on (and from what I see in the libsolv upstream I have a reason to believe that). depcheck is the project I'm working on; it would be kind of cool if at least the docs would be fixed to reflect the changes. (In reply to Ales Kozumplik from comment #1) > Hi John, thank you for the report. I don't see we package 'depcheck.py' in > python-solv, please reopen this if we do. The libsolv upstream does not > guarantee API compatibility between patchlevels and even less so between > minor versions. I'm afraid there is not much I can do here, except to hope > that the API will be more stable from now on (and from what I see in the > libsolv upstream I have a reason to believe that). Do you reckon you could give me some docs on the new API? What I'm looking at is no different than what I used for the old API. there's some documentation in the upstream checkout[1], and libsolv-devel[2] packcages the man files. [1] https://github.com/openSUSE/libsolv/tree/master/doc [2] http://koji.fedoraproject.org/koji/rpminfo?rpmID=4399657 I try very hard to keep the API stable. In your case, the Job() constructor API has not changed, but I changed the add_rpm() method to return a solvable object instead of a solvable id. Returning the object makes much more sense and is consistent with the add_solvable() method. So you can probably fix your code by changing the code to: jobs.append(armv7hl.Job(solv.Job.SOLVER_INSTALL|solv.Job.SOLVER_SOLVABLE, solvable.id)) i.e. solvable.id instead of solvable. |